问题
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:
来源:https://stackoverflow.com/questions/38363099/how-to-enable-debuging-when-using-jpm-run-to-test-a-firefox-add-on-sdk-extension