question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to launch/attach Firefox at all on OSX.

See original GitHub issue

I’m trying to go through the Heaps.io ‘hello world’ introduction but use Firefox as my browser and I cannot get VSCode to launch Firefox or attach, despite playing with the settings.

When I try and debug, VSCode just waits for something to happen and then doesn’t load Firefox. I have tried launching the browser via the command line and attaching (using -start-debugger-server) but no luck their either. I have set the debug config options in the browser settings too.

The launch config file is the default one as follows;

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch index.html",
            "type": "firefox",
            "request": "launch",
            "reAttach": true,
            "file": "${workspaceFolder}/index.html"
        },
        {
            "name": "Launch localhost",
            "type": "firefox",
            "request": "launch",
            "reAttach": true,
            "url": "http://localhost/index.html",
            "webRoot": "${workspaceFolder}"
        },
        {
            "name": "Attach",
            "type": "firefox",
            "request": "attach"
        },
        {
            "name": "Launch WebExtension",
            "type": "firefox",
            "request": "launch",
            "reAttach": true,
            "addonPath": "${workspaceFolder}"
        }
    ]
}

VSCode Version: 1.41.1 Commit: 26076a4de974ead31f97692a0d32f90d735645c0

MacOS Version: 10.15.2 (19C57)

Please can someone help me diagnose where the problem lies as i’m unsure of whether it is VSCode, Firefox or the plugin that is causing the issue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
pheprantocommented, Mar 30, 2020

I’ve ran into the same issue during the same tutorial on Windows 10. The haxe language server occupies port 6000 Therefore changing the port of the firefox debugging fixed everything for me

"configurations": [
        {
            "name": "Firefox debug",
            "type": "firefox",
            "port":6060,
            "request": "launch",
            "reAttach": true,
            "file": "${workspaceFolder}/index.html"
        }
    ]
1reaction
JimmyDeemocommented, Mar 3, 2020

Sorry for my lack of response on this; I haven’t had the time to dig further. I will endeavour to check the port setting, to see if that would have any effect.

Re: sample project, i’m following the ‘hello world’ example over at the Heaps website here; https://heaps.io/documentation/hello-world.html. Only switching the parts about Chrome to use Firefox instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firefox won't open on Mac despite trying everything I've read
Hi, I have a Mac 10.11.6 and for whatever reason I cannot get ... If you can't get Firefox to open, you will...
Read more >
Firefox Not Working on Your Mac? Here's How To Fix It
The problem occurs after you open Firefox and attempt to navigate to pretty any website. Instead of the webpage loading as normal, you'll ......
Read more >
How to fix common Firefox issues on a Mac - Setapp
Go to the Updates tab and wait till it shows you all the new software versions available. If you see new updates for...
Read more >
The application “Firefox.app” can't be opened.
It looks like an error message from Mac OS not Firefox. Unfortunately the message offers no information.
Read more >
How to Quickly Fix Firefox Crashes and Freezes on Mac
Disable Hardware Acceleration — Go to Firefox → Preferences → General and untick Use recommended performance settings and Use hardware ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found