vscode-edge-devtools icon indicating copy to clipboard operation
vscode-edge-devtools copied to clipboard

Allow attaching the debugger to existing browser pages

Open hediet opened this issue 2 years ago • 3 comments

I have a server listening on http://localhost:3000 that serves my frontend code. It would be nice to have an easy way to debug this frontend code now.

Ideally I would like to open the embedded edge browser for http://localhost:3000 and then click a button in the panel to start debugging the page.

hediet avatar Dec 13 '23 13:12 hediet

You can add your local dev URL to a launch.json file and that should do it. Would that work for you? https://learn.microsoft.com/en-us/microsoft-edge/visual-studio-code/microsoft-edge-devtools-extension/launch-json

captainbrosset avatar Dec 14 '23 11:12 captainbrosset

I think it would cool if there was a flow that doesn't require a launch.json.

E.g. for nodejs, you can just open the js debug terminal in VS Code, start the nodejs script and debugging is active.

Similarily, here, it would be nice to click on an url in the VS Code terminal, edge would open in VS Code (see #1893), and then I click a button in the webview to attach the VS Code debugger to it. This would be very intuitive and doesn't require reading any documentation. @bpasero also tried to attach a debugger and had the same difficulties as me with the launch config.

hediet avatar Dec 14 '23 14:12 hediet

Thanks for clarifying. Marking as a feature request on our backlog.

captainbrosset avatar Dec 15 '23 09:12 captainbrosset