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
The firefox-desktop launcher relies on findFreeTcpPort() and passes it to firefox-bin with --start-debugger-server [some_free_TCP_port]. Trying to override this behavior using web-ext run --firefox --args="--start-debugger-server [my_TCP_port] fails because firefox ignores the second occurrence of --start-debugger-server in the command line. Using --pref=devtools.debugger.remote-port=[my_TCP_port] doesn't work either because command line arguments take precedence.
What is the expected or desired behavior?
The main motivation behind allowing the user to specify the remote debugger port is to make it easier to use web-ext together with the VS code "Debugger for Firefox" extension. Right now one has to use something like netstat or lsof to find out which remote debugger port web-ext launched firefox with, then go and modify the port option in .vscode/launch.json to allow "Debugger for Firefox" to correctly attach to the remote debug console. This has to be done after each restart of web-ext.
The text was updated successfully, but these errors were encountered:
One other possible approach to get the port we choose internally may be to use web-ext as a nodejs library and programmatically retrieve the port through that, using web-ext as library is not fully supported use case but we have a small set of test cases to ensure we don't break it without noticing, but most of the details need to be determined by looking to how web-ext uses the internals that are also exported when used as a library.
Alternatively we are open to consider introducing an explicit option, if the proposed approach looks clean, and so we are also marking this issue as contrib welcome.
Is this a feature request or a bug?
Feature request
What is the current behavior?
The firefox-desktop launcher relies on
findFreeTcpPort()
and passes it tofirefox-bin
with--start-debugger-server [some_free_TCP_port]
. Trying to override this behavior usingweb-ext run --firefox --args="--start-debugger-server [my_TCP_port]
fails because firefox ignores the second occurrence of--start-debugger-server
in the command line. Using--pref=devtools.debugger.remote-port=[my_TCP_port]
doesn't work either because command line arguments take precedence.What is the expected or desired behavior?
The main motivation behind allowing the user to specify the remote debugger port is to make it easier to use
web-ext
together with the VS code "Debugger for Firefox" extension. Right now one has to use something likenetstat
orlsof
to find out which remote debugger portweb-ext
launched firefox with, then go and modify theport
option in.vscode/launch.json
to allow "Debugger for Firefox" to correctly attach to the remote debug console. This has to be done after each restart ofweb-ext
.The text was updated successfully, but these errors were encountered: