# Help with VS code and debugging

**URL:** <https://discourse.aurelia.io/t/help-with-vs-code-and-debugging/3761>\
**Category:** Help Requests\
**Created:** [September 7, 2020, 5:48pm UTC](https://discourse.aurelia.io/t/help-with-vs-code-and-debugging/3761 "2020-09-07T17:48:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremyholt](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/jeremyholt/32/1098_2.png) [@jeremyholt](https://discourse.aurelia.io/u/jeremyholt)\
**Post date:** [September 7, 2020, 5:48pm UTC](https://discourse.aurelia.io/t/help-with-vs-code-and-debugging/3761/1 "2020-09-07T17:48:12Z")

</div>

I would appreciate it if someone could help in getting debugging with VS code working. I’m not sure if it’s a problem with VS code or the cli.

I either get “unverified breakpoint”, or the breakpoint jumps to another line. I can’t even debug within the developer panel.

My setup is aurelia-cli 1.3.1 with require.js. (I tried upgrading the cli to v 2.0.0 but got all kinds of other problems).

All npm packages are up to date (yarn outdated/yarn upgrade).

I run the app from au build --watch

VS Code  
Version: 1.49.0-insider (user setup)  
Commit: e4256dd1a02339bb1d56647ecd9134bf38bc7c03  
Date: 2020-09-04T18:49:12.955Z  
Electron: 9.2.1  
Chrome: 83.0.4103.122  
Node.js: 12.14.1  
V8: 8.3.110.13-electron.0  
OS: Windows\_NT x64 10.0.19041

The code structure is

```auto
/
/src
/wwwroot/scripts/*.bundle.js.* etc

```

I’m using Microsoft Edge (chrome) but have the same problem with Google Chrome.

`launch.json`

```auto
 "configurations": [
    {
      "trace": true,
      "name": "Launch Chrome",
      "request": "launch",
      "type": "pwa-chrome",
      "url": "https://localhost:5001",
      "webRoot": "${workspaceFolder}/src",
      "userDataDir": "${workspaceFolder}/.chrome",
      "sourceMapPathOverrides": {
        "/*": "${webRoot}/*"
      }
    },
    {
      "name": "Launch Edge",
      "request": "launch",
      "type": "pwa-msedge",
      "url": "https://localhost:5001",
      "webRoot": "${workspaceFolder}/src"
    },

```

I used to be able to run `.scripts` from the debugger but that no longer seems to work

---

<div class="post-metadata">

**Author:** ![davidsk](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/davidsk/32/930_2.png) [@davidsk](https://discourse.aurelia.io/u/davidsk)\
**Post date:** [September 8, 2020, 9:51pm UTC](https://discourse.aurelia.io/t/help-with-vs-code-and-debugging/3761/2 "2020-09-08T21:51:54Z")

</div>

Pretty sure I got debugging working with v1, have a look at [https://www.github.com/davidsk/AureliaVsReact/tree/master/aurelia-app%2F.vscode%2Flaunch.json](https://www.github.com/davidsk/AureliaVsReact/tree/master/aurelia-app%2F.vscode%2Flaunch.json)
