Questions tagged [vscode-debugger]

The Visual Studio Code debugger allows the developer to find errors in a program by pausing and inspecting the code.

The Visual Studio Code Debugger allows the developer to find errors in a program by pausing and inspecting the code.

References:

  1. Debugging User Guide
  2. Video tutorial
1100 questions
40
votes
2 answers

How to make vscode not wait for finishing a preLaunchTask?

I have a debug setup in Visual Studio code where I run an external binary which can execute my JS files (using duktape). The debug adapter currently only supports attach requests (not launch) so I have to run the binary before I can debug the JS…
Mike Lischke
  • 36,881
  • 12
  • 88
  • 141
37
votes
3 answers

How to disable "just my code" setting in VSCode debugger?

When starting my project in the debugger (C# .NET Core), it states it's debugging "just my code". I want to also debug the libraries, and can't see a setting to disable this anywhere in VSCode. Is it possible to disable?
Revolt64
  • 473
  • 1
  • 4
  • 5
28
votes
7 answers

How do you debug Jest Tests?

I can't find any information on debugging my unit tests written with Jest. How do you debug Jest Tests ?
BentOnCoding
  • 23,888
  • 10
  • 59
  • 92
24
votes
6 answers

How to attach the VSCode debugger to the Brave browser?

When I open my web application in the Chrome browser I can attach the VSCode debugger to it. The debugger configuration is: { "name": "Attach to Chrome", "type": "chrome", "request": "attach", "port": 9222, "url":…
Stephane
  • 8,110
  • 16
  • 85
  • 135
24
votes
6 answers

How to debug a nodemon project in VSCode

I have a NodeJs project and I run it using nodemon, I wish to run it in debug mode for development tasks, but I am unable to do so. I found that I'll need to add the right configuration to the launch.json file under .vscode folder, I have a app.js…
Ani
  • 3,452
  • 5
  • 52
  • 113
23
votes
6 answers

Debugger Not Stopping at Breakpoints in VS Code for Python

I have just installed VS Code and the Python extension, and I have not been able to get the debugger to work. Every time I try to use the debugger, it just skips over any breakpoints that I have set and runs the program like normal. I am using VS…
rogo8888
  • 231
  • 1
  • 2
  • 4
20
votes
5 answers

How to change string representation of objects in Nodejs debug console view

How do I change the string representation of an object instance in nodejs debug console. Is there a method (like toString() in .NET) I can override? Consider the following code: class SomeObject{ constructor(){ this._varA = "some…
Leo
  • 4,044
  • 1
  • 21
  • 53
18
votes
5 answers

My Angular application doesn't hit breakpoint when debugging?

Kinda new to Visual Studio Code and Angular applications with a C# Web API back-end. No problem hitting a breakpoint in C#, just not hitting it in Angular app in VS Code! I can run both apps just fine the in the browser, from the terminal, with…
user1186050
  • 10,710
  • 18
  • 92
  • 235
18
votes
1 answer

How to display current values of VS Code's predefined variables (such as "${workspaceFolder}" or "${fileWorkspaceFolder}")?

I am facing an issue with VS code debugger while trying to debug some angular typescript source code, and I think the reason is that some of those VS Code Variables have the wrong value - as suggested here. I'd like to follow that advice, but I see…
Matt
  • 21,449
  • 14
  • 100
  • 149
18
votes
1 answer

Is it possible to blackbox vendor code when using VSCode's node debugger?

Chrome Dev Tools has offered the ability to blackbox selected code for a while now, but I can't seem to find a comparable feature for VSStudio when debugging Node. I've been through the debugger docs and lots of issues on VSCode's Github, but I…
Undistraction
  • 38,727
  • 46
  • 165
  • 296
16
votes
2 answers

VS Code "step into" debugger configuration

When I debug my C++ project in VS Code and toggle a breakpoint, The "step into" option redirecting me to external files/libraries, but I want to step only into my code. I tried to add "justMyCode": true option in launch.js file, but it says this…
P. Milev
  • 326
  • 1
  • 12
16
votes
1 answer

How to debug Angular 6 subproject from VS Code

I Created a new Angular 6 CLI project ng new myProjects Created 'sub project' ng g mySubProject If I ng serve mySubProject then try to debug from VS Code using my normal launch.json, then breakpoints are not hit. { "name": "Launch Chrome…
Maxxx
  • 3,436
  • 1
  • 17
  • 18
13
votes
2 answers

Visual Studio Node: debug into Worker Threads (node 11)

Can VS Code's Javascript debugger be made to debug node 11's new "Worker Threads"? Worker threads are modelled after web workers with a small number of extra capabilities on top and are available from the new worker_threads package (see…
13
votes
0 answers

How to debug Groovy script in Visual Studio Code

I have a groovy script which I want to debug in Visual Studio Code. I was thinking that groovy being a JVM language I may need to use the Java Debugger. But I have not yet found a way to debug Groovy code. Any suggestion?
Saikat
  • 8,190
  • 12
  • 69
  • 94
13
votes
3 answers

Visual Studio Breakpoint Bar Not Present (Glyph margin, Overview Ruler)

So I hit some weird combination of keystrokes, and now my visual studio looks all jacked up and I can't figure out how to customize it back to what it was. I've googled it lots, and I can't seem to find out where to fix it all. It's just the code…
1
2 3
73 74