microsoft / microsoft/vscode-js-debug-browsers
Linux - "Run and Debug: auto-detection found 'Edge' for a launch browser" (Edge not installed)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 6
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 2
Description
Hello!
I am having a strange issue where the browser auto-detection seems to locate the "dev" version of Edge (which I've never installed). This seems to force precedence over chrome, causing the debug launch to fail, as it cannot launch Edge (I do not have any version of Edge installed).
I had installed the stable version of Edge, once upon a time, to test the Edge Debugger extension, but I have since uninstalled both. I've searched my system far and wide trying to find and remove any remnants of Edge from my system to fix whatever is causing this, but it continues to think Edge is installed. After launching the debugger and receiving Run and Debug: auto-detection found 'Edge' for a launch browser, I then see the following pop-up Unable to launch browser: "Unable to find Edge version *. Available auto-discovered versions are: ["dev"]. You can set the "runtimeExecutable" in your launch.json to one of these, or provide the full path to the browser executable.":
As a side note, because I am running the following in my launch.json, I am unable to set the runtimeExecutable or provide any kind of preferred browser or absolute path, as "type": "dotnet" does not allow for it:
Occasionally, when running my debug for the first time after launching vscode, Chrome might be properly found, however any subsequent debugs only find this phantom Edge until I relaunch vscode again (and even then it might still detect Edge after relaunch).
I've tried searching my system using the grep here:
in these folders:
using the regex from here:
but I find nothing. I can see similar output from the /usr/bin/ search in the vscode developer tools that I see in my own terminal:
But still, no Edge is found via my command line. I cannot, for the life of me, figure out why vscode is detecting a "dev" version of edge, but its making debugging a major PITA 😅
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the cited src/linuxChrome.ts and src/linuxEdge.ts discovery logic, especially the Linux search paths and Edge matching regex, and compare them with the reported /usr/bin output. Reproduce the phantom “dev” Edge detection on Linux and trace why it takes precedence over Chrome. Done means an unavailable Edge is not selected and Chrome can be discovered consistently for the dotnet launch configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100