Problem: how to debug a Meteor plugin file?


#1
  • I’ve followed Meteor Doc to register a plug-in package.

  • Created a plug-in file in the package/plugin/ folder

  • Added a debugger; in that file.

  • ran $ meteor debug;

Problem: debugger; directive is ignored. How to debug the plug-in file?

Thx!


plugin/compile-atscript.js:

    Plugin.registerSourceHandler(
        'ats'
        , function (compileStep) {
            var source = compileStep.read().toString('utf8');
            console.log('source: ' + source);
            debugger;
            console.log('compiled source: ' + source);
        });