Unable to debug frontend code in vscode #24117
Unanswered
groyee
asked this question in
Configuration
Replies: 1 comment 3 replies
-
Not sure how to fix, but personally I always just set breakpoints in Chrome browser, I've never felt the need to use breakpoints in vscode for frontend. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I followed the documentation to setup development environment for home assistant frontend: Frontend development | Home Assistant Developer Docs
Everything works, except the breakpoints.
I run this command in the terminal:
script/develop_and_serve -c http://homeassistant.local:8123
Then in vscode, I just tun the “Debug Frontend” profile:
“configurations”: [
{
“name”: “Debug Frontend”,
“request”: “launch”,
“type”: “Chrome”,
“url”: “http://localhost:8124/”,
“webRoot”: “${workspaceFolder}/hass_frontend”,
“disableNetworkCache”: true,
“preLaunchTask”: “Develop Frontend”,
“env”: { “HASS_URL”: " http://homeassistant.local:8123/" },
“sourceMaps”: true,
},]
But breakpoints don’t work:
Beta Was this translation helpful? Give feedback.
All reactions