You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 19, 2021. It is now read-only.
I'm developing a firefox add-on and I'd like to be able to run this repl within the context of the add-on. So far, the only way I know to run js code within the add-on is by starting firefox with the add-on enabled, go to the addons page, clicking Debug, accepting the prompt to start a remote-debugging request, setting a breakpoint, then using the browser in a way that triggers the breakpoint. Then I can go to the console tab of the remote-debugging window and I'm in the add-on context.
Naturally, all this clicking and hoops are very slow and frustrating and I'd like to start a repl programmatically, something like: /usr/bin/firefox -profile /path/to/profile/folder -repl -repl 7070
However, mozrepl only seems to run in the context of the browser. Is there a way to specify a specific add-on to attach a repl as a debugger? Any pointers for implementing this feature?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm developing a firefox add-on and I'd like to be able to run this repl within the context of the add-on. So far, the only way I know to run js code within the add-on is by starting firefox with the add-on enabled, go to the addons page, clicking Debug, accepting the prompt to start a remote-debugging request, setting a breakpoint, then using the browser in a way that triggers the breakpoint. Then I can go to the console tab of the remote-debugging window and I'm in the add-on context.
Naturally, all this clicking and hoops are very slow and frustrating and I'd like to start a repl programmatically, something like:
/usr/bin/firefox -profile /path/to/profile/folder -repl -repl 7070
as pointed out in the docs https://github.com/bard/mozrepl/wiki/Starting-the-REPL
However, mozrepl only seems to run in the context of the browser. Is there a way to specify a specific add-on to attach a repl as a debugger? Any pointers for implementing this feature?
The text was updated successfully, but these errors were encountered: