I am trying to debug my Typescript code in Visual Studio Code, using the Chrome Debugger extension, but I am getting the \"Unverified breakpoint\" message on my breakpoint,
Another answer which I just discovered is related to lazy loaded modules.
If you want to set breakpoints in code that is part of a lazy loaded module and you haven't loaded that module in the browser, VS code won't have access to the source maps to verify the breakpoints!
so only set breakpoints when you have loaded the lazy loaded module you want to debug!
After spending 3 precious hours of my life and going through many of the answers listed above, my problem was as simple as not having the following line in my php.ini
:
xdebug.remote_autostart = 1
Before this I had already configured XDebug on my XAMPP, but my breakpoints simply wouldn't get hit. It was just that my debug server was not configured to be started automatically.
Hope this saves someone's day.
I was getting this error simply because I didn't have "sourceMaps": true
in my debug configuration.
The solution for me was to add to the launch.json file the following line: "requireExactSource": false. After this, restart VSC and try if it work.
npm i
fixed it for my part. I sometimes get unverified breakpoints when creating a new folder/file, and that usually does it.
I had open in VS code my-app folder where client folder and server folder was. I had to change in launch.json from this
"webRoot": "${workspaceFolder}"
to this
"webRoot": "${workspaceFolder}\\client"