Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to launch or attach to firefox #185

Open
eidellev opened this issue Oct 12, 2022 · 9 comments
Open

Unable to launch or attach to firefox #185

eidellev opened this issue Oct 12, 2022 · 9 comments

Comments

@eidellev
Copy link

eidellev commented Oct 12, 2022

Hi and thanks for this plugin. The last few releases were really 🔥 !

While the chrome adapter works without any issues I can't seem to get firefox to work in either launch or attach mode.
I'm getting the following error in the Sublime console:

Debugger: Nothing to read from process, closing
Debugger: error: event ignored not implemented unknownSource

This is my config for launching firefox:

{
  "type": "firefox",
  "request": "launch",
  "reAttach": true,
  "name": "Launch firefox 🦊",
  "url": "http://localhost:3000/index.html",
  "webRoot": "${folder}",
  "port": 3000,
  "firefoxExecutable": "/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox"
},
@daveleroy
Copy link
Owner

Its probably because its like 2 years old on openvsx https://open-vsx.org/extension/firefox-devtools/vscode-firefox-debug

@eidellev
Copy link
Author

Well that's depressing.. any way to install it manually?

@daveleroy
Copy link
Owner

You could build it and replace what was placed in Packages/Debugger/data/adapters/firefox

@eidellev
Copy link
Author

Thanks! I'll give it a shot

@eidellev
Copy link
Author

The error I saw before is gone, but firefox is still not launching 🤔
This is what I'm seeing in the Debugger Protocol tab:

⟸ process/stopped :: 
⟸ process/starting :: ['/usr/local/bin/node', '/Users/lev/Library/Application Support/Sublime Text/Packages/Debugger/data/adapters/firefox/extension/dist/adapter.bundle.js']
⟸ process/started ::
⟸ request/initialize(1) :: {'clientID': 'sublime', 'clientName': 'Sublime Text', 'adapterID': 'firefox', 'pathFormat': 'path', 'linesStartAt1': True, 'columnsStartAt1': True, 'supportsVariableType': True, 'supportsVariablePaging': False, 'supportsRunInTerminalRequest': True, 'supportsMemoryReferences': True, 'locale': 'en-us'}
⟹ response/initialize(1) :: {'supportsConfigurationDoneRequest': False, 'supportsEvaluateForHovers': False, 'supportsFunctionBreakpoints': False, 'supportsConditionalBreakpoints': True, 'supportsSetVariable': True, 'supportsCompletionsRequest': True, 'supportsDelayedStackTraceLoading': True, 'supportsHitConditionalBreakpoints': True, 'supportsLogPoints': True, 'supportsDataBreakpoints': True, 'supportsBreakpointLocationsRequest': True, 'exceptionBreakpointFilters': [{'filter': 'all', 'label': 'All Exceptions', 'default': False}, {'filter': 'uncaught', 'label': 'Uncaught Exceptions', 'default': True}]}
⟸ request/launch(2) :: {'name': 'Launch firefox 🦊', 'port': 3000, 'reAttach': True, 'request': 'launch', 'type': 'firefox', 'url': 'http://localhost:3000/index.html', 'webRoot': '/Users/lev/Projects/zencity/community/client'}
⟹ event/initialized :: None
⟸ request/setExceptionBreakpoints(3) :: {'filters': ['uncaught'], 'filterOptions': [ExceptionFilterOptions(filterId='uncaught', condition=None)]}
⟸ request/setDataBreakpoints(4) :: {'breakpoints': []}
⟹ response/setExceptionBreakpoints(3) :: None
⟹ response/setDataBreakpoints(4) :: {'breakpoints': []}

@daveleroy
Copy link
Owner

I think you are asking firefox to use the same port for remote debugging that you are using for serving your content which is probably causing issues

@eidellev
Copy link
Author

thanks! now firefox launches but the debugger fails to attach.

this my current config:

{
	"type": "firefox",
	"request": "launch",
	"reAttach": true,
	"name": "Launch firefox 🦊",
	"url": "http://localhost:3000/index.html",
	"webRoot": "${folder}",			
},

and this is the error i'm seeing in the debugger console:

connect ECONNREFUSED ::1:6000
Debugging ended

if i understood this correctly, port 6000 is supposed to be used in attach mode only.
any idea what's going on?

@daveleroy
Copy link
Owner

daveleroy commented Oct 17, 2022

As far as I can tell the launch request is just opening firefox and configuring it for remote debugging. Port 6000 is the default port they use.

You can look to see what port is being used by firefox with about:debugging

@eidellev
Copy link
Author

Tried the port that's configured there (6080) but still getting the same error. btw, I tried the same config in VSCode and it works there so I'm kinda stuck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants