question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unbound remote ts breakpoint

See original GitHub issue

Describe the bug I run a typescript node app in a local docker container and attach to it for debugging. Breakpoints are always unbound now under the new debugger, however they still get hit and open up the transpiled js file instead.

My config:

{
      "type": "node",
      "request": "attach",
      "name": "Docker Attach",
      "address": "0.0.0.0",
      "port": 9995,
      "localRoot": "${workspaceFolder}",
      "remoteRoot": "/app",
      "outFiles": [
        "${workspaceFolder}/build/**/*.js"
      ],
      "skipFiles": [
        "<node_internals>/**/*.js",
      ]
}

Docker container ties ${workspaceFolder}/build and /app/build together as a volume mount. Same with ${workspaceFolder}/src and /app/src. So I can edit and hot reload with Nodemon.

App is started via node --inspect=0.0.0.0:9995 build/src/index.js

Log File

vscode-debugadapter-1.json.gz

VS Code Version: Version: 1.49.0 Commit: e790b931385d72cf5669fcefc51cdf65990efa5d Date: 2020-09-10T17:39:53.251Z Electron: 9.2.1 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Darwin x64 19.5.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
connor4312commented, Sep 15, 2020

Ok, thanks for confirming, I’ll put a fix in for the next release.

1reaction
KieranHarpercommented, Sep 15, 2020

Hey yeah that makes it work again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unbound breakpoint - VS Code | Chrome | Angular
The fix for this was simple, I hadn't set the sourceMap property to true in angular.json for that particular environment, instead I had ......
Read more >
When a Breakpoint Binds or Becomes Unbound
When a breakpoint can't be bound at the time a call is made to the IDebugPendingBreakpoint2::CanBind method, the bind time and create time...
Read more >
Debugger Extension - Visual Studio Code
Mock Debug simulates a debugger and supports step, continue, breakpoints, ... However, Mock Debug has a small src/extension.ts because it illustrates what ...
Read more >
Debugging Angular with VS Code & Setting Breakpoints
It's really easy to set up and debug your Angular project with Visual Studio Code. This video covers just how simple the process...
Read more >
“Unbound breakpoint” on running Node.js project.
But, if you tried to set a breakpoint in your client-side code same time, it would be just grey unfilled circle with “Unbound...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found