Bug in `ChromeDebuggingAttachment` settings
See original GitHub issueVery nice tool.
Is it possible to use the VSCODE attach to the live server? Or to Launch the Live server from the launch.json . If so , how does one do that? Or is there a fundamental limitation that I have to use the Chrome Debugger (which I really don’t mind, I just wanted to see if I could use the VSCODE debugger also).
Launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Live Server",
"url": "http://localhost:5500/WorkBench/Workbench.html",
"webRoot": "${workspaceRoot}"
},
{
"type": "chrome",
"request": "attach",
"name": "Attach to Live Server",
"port": 5500,
"webRoot": "${workspaceRoot}"
}
]
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (8 by maintainers)
Top Results From Across the Web
chrome.debugger.attach doesn't work with youtube. - Monorail
2. Open youtube in a tab. ... }); 4. Click cancel in the "extension started debugging this browser" popup. ... 6. Open youtube...
Read more >Visual studio debugger won't attach to chrome
I'm trying to attach to an instance of chrome running a react page, using node as a server. I want to attach to...
Read more >Using chrome.debugger.attach throws error "Cannot attach to ...
I'm currently writing a Google Chrome extension that uses the Chrome Debugger to log network activity (among other things).
Read more >chrome.debugger - Chrome Developers
Use chrome.debugger to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, etc. Use the...
Read more >Debug Mode | Nearby Notifications - Google Developers
How do I use debug attachments / how do I test my attachments? ... Debug mode also enables more detailed bug reports, which...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi I’m not sure if I’m missing something but it still doesn’t seem to work for me and I get that same message:
Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:9222).
What I did was: in setting.json:
"liveServer.settings.ChromeDebuggingAttachment": true
in launch.json:
and In the “target” field of Chrome, appended
--remote-debugging-port=9222
moved to: https://github.com/Microsoft/vscode-chrome-debug/issues/555