How to enable debuging when using jpm run to test

2019-09-17 20:59发布

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条回答
beautiful°
2楼-- · 2019-09-17 21:10

Use the command jpm run --debug.

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

Accept Incoming Connection?

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

Debugger window

查看更多
登录 后发表回答