microsoft / microsoft/vscode-edge-devtools
Edge DevTools Extension Fails to Launch Visible Browser and DevTools in VS Code on Windows 11
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 827
- Forks
- 358
- Avg merge
- 20h 32m
- Merged PRs (30d)
- 10
Description
Environment (please complete the following information):
- OS: Windows 11
- Extension version: 2.1.5
- Browser: Microsoft Edge Version 124.0.2478.67
Describe the bug:
The Microsoft Edge Tools for VS Code does not function as expected. The browser is supposed to open within VS Code tabs for debugging, but it doesn't launch visibly and seems to be stuck in headless mode despite settings indicating otherwise. The DevTools panel does not open, and the extension throws an error stating "Error while fetching list of available targets No available targets to attach."
Repro steps:
- Ensure Microsoft Edge is installed and updated.
- Install Microsoft Edge Tools for VS Code extension version 2.1.5.
- Attempt to configure
launch.jsonwith both default and documentation-specified parameters to launch Edge. - Attempt to launch the Edge browser through the VS Code extension using the configuration.
- Try right-clicking an HTML file and selecting "Open with Edge" as described in the Microsoft documentation.
- Observe that neither method results in the expected behavior, and the browser does not visibly open; extension errors with no available targets.
Expected behavior:
The expected behavior is for Microsoft Edge to open in a visible tab within VS Code, allowing for interaction with the DevTools directly within the IDE environment.
Additional context:
The issue persists even after ensuring all settings for headless mode are disabled and after multiple restarts of both Edge and VS Code. Screenshots of the error messages and settings have been provided to illustrate the problem. Multiple methods documented for opening the browser and DevTools directly have failed to function as described.
AB#50580089
Contributor guide
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 by reproducing the failure with Edge 124, extension 2.1.5, Windows 11, and the documented launch.json and “Open with Edge” flows. Trace how the extension discovers available targets and opens the browser and DevTools; done means both flows open a visible browser and attach DevTools without the no-targets error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100