Solo quiero depurar javascript simple incrustado en un index.html, pero el depurador en VSCode 1.60.0 no se detiene en los puntos de ruptura porque no están vinculados. Lo probé con "[Deprecated] Debugger for Chrome" y el complemento "JavaScript Debugger v1.60.1" ya activado.
lanzamiento.json
"configurations": [ { "type": "pwa-chrome", "request": "launch", "name": "JS Client Debugger", "url": "http://localhost:80/test1/index.html", "trace": true } //OR { "type": "chrome", "request": "launch", "name": "Launch Chrome against localhost", "url": "http://localhost:80/test1/index.html", "webRoot": "${workspaceFolder}", "breakOnLoad": true, "sourceMaps": true, "sourceMapPathOverrides": { "*": "${webRoot}/*" } } ]índice.html
<!doctype html> <html lang="en-us"> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Test</title> </head> <body> <div id="test"></div> <script type='text/javascript'> ->Breakingpoint var statusElement = document.getElementById('test'); </script> </body> </html>¿Qué estoy haciendo mal aquí? Gracias...