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
1999 questions
22
votes
3 answers

"You don't have an extension for debugging 'JSON with Comments'" warning when debugging VS Code theme

I generated the files necessary for creating a color theme in VS Code. I did this with the generator-code node package. My file structure is as follows When I run VS Code's debugger, I get this warning that prevents the debugger from running. Here…
Ksoup
  • 223
  • 1
  • 2
  • 6
22
votes
1 answer

How to disable “Debug” from showing in package.json

How to disable the outlined "Debug" tip from showing up in package.json above the scripts section:
Wenfang Du
  • 8,804
  • 9
  • 59
  • 90
22
votes
4 answers

Debugging Celery with VSCode

I am using VSCode for web-developing with framework Django. There is no questions for debugging Django, but when i try to use Celery - debugger dosn't stop at breakpoints. I use this configuration for run Celery and Celery Beat: { "name":…
anderson
  • 1,169
  • 2
  • 10
  • 15
22
votes
3 answers

How to display the hex value in the Watch panel of VS Code?

I started to use VS Code on Linux and I'd like to see the hex value of a variable near its value. I need it because the variable is a mask, so it is composed of 0's and 1's on certain positions. I did not manage to find a setting or something like…
sop
  • 3,445
  • 8
  • 41
  • 84
21
votes
4 answers

VS Code Debugger Extremely Slow to Reach First Breakpoint

I'm using VS Code on Windows 10, to debug both Python and React. The debugger is extremely slow to reach the first breakpoint, for both Python and JS/Chrome. The sequence of actions I'm observing is: VS Code's program tab lights up…
gene b.
  • 10,512
  • 21
  • 115
  • 227
21
votes
3 answers

How to debug dotnet test in VS Code?

This article describes setting the VS Code settings to point the debugging target at the build output of the unit test project. I have therefore set mine like this: { "explorer.confirmDragAndDrop": false, "git.allowForcePush": true, …
Matt W
  • 11,753
  • 25
  • 118
  • 215
20
votes
8 answers

Cannot run debug Go using VSCode on Mac M1

I found a topic that encounter the same problem (Can't debug Golang in vscode apple m1) but I'm not sure it's an old solution or not because I'm using the Go version go1.17.1 darwin/arm64 with dlv version 1.7.2 and VSCode version 1.60.2…
cross_knight
  • 235
  • 1
  • 3
  • 7
20
votes
1 answer

How to run and debug a react app directly from VSCode?

I'd like to be able to compile and run a react app directly from VSCode, and then get into debug mode (and do it regardless if it's a javascript or typescript react app). The expected steps are: Run npm start. Launch the app in the browser. Enter…
OfirD
  • 9,442
  • 5
  • 47
  • 90
20
votes
4 answers

How to configure VS code for pytest with environment variable

I am trying to debug pytest. I would like to inject an environment variable. Here is how I have set launch.json { "type": "python", "request": "test", "name": "pytest", "console": "integratedTerminal", "env": { …
katch
  • 820
  • 1
  • 7
  • 24
20
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
  • 374
  • 2
  • 12
19
votes
2 answers

VS Code debug with Flutter 3.10 / Dart 3.0

After latest "flutter upgrade" I'm having problems viewing some variables during debug in VS Code. How can I view the contents of variables when hovering instead of getting this Screenshot of hovering variable: This only happens to some variables,…
swepilot
  • 191
  • 5
19
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
  • 42,754
  • 56
  • 195
  • 331
18
votes
4 answers

How can I get pytest to not catch exceptions

When I run pytest in the vscode debugger with "Uncaught Exceptions" checked, and there are test errors, no uncaught exceptions occur, because pytest catches them do its results reporting. How can I tell pytest to just let the exceptions happen? So…
Philip
  • 1,691
  • 4
  • 21
  • 41
18
votes
1 answer

Debugging with VSCODE not working in a Webpack + Typescript + no-framework

The Context Lost hours trying to get vscode debugger to run in this project. Using: Webpack Typescript no external libs The idea is to generate a pure vanilla JS component ie11 compatible. Here is it in action: Link to live example:…
18
votes
8 answers

Physical device (iPad) not detected in vs code for flutter but detected and working proper for debugging in Xcode

Here's my Environment Xcode Version: 11.1 (11A1027) Physical device: - iPad mini 2 (IOS 12.4.2) VSCode Version: 1.39.2 Flutter version: 1.9.1+hotfix.6 When I use the iOS part of the Flutter project and run it physical device using XCode, it…
harpreet seera
  • 1,620
  • 1
  • 7
  • 15