How to enable debuging when using jpm run to test a Firefox Add-on SDK extension

[亡魂溺海] 提交于 2019-12-12 01:42:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!