How to enable debuging when using jpm run to test

2019-09-17 21:01发布

问题:

Can somebody tell me what is required to turn on a debugger when testing a Firefox Add-on SDK extension on Windows 7, 64 bit. I'm launching the add-on via the command line with the command jpm run.

I've tried bring up the debugger via F12. But, I can't see my JavaScript file(s) there.

A step-by-step guide would be useful.

回答1:

Use the command jpm run --debug.

Then click on "OK" when asked to accept the incoming connection:

?

You will then have a debugger window from which you can select your JavaScript files: