简体   繁体   中英

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

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.

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:

调试器窗口

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM