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
18
votes
1 answer

Enable remote debugging on Chrome by default on mac?

I am working on getting the VS Code debugger to attach to Chrome as part of my regular workflow. I keep Chrome running all the time, and the highly-regarded VS Code Live Server extension opens my project in a new tab, which I like. I would like to…
18
votes
5 answers

VS Code opens a new debug console every time I build/run

Every time I build or run a program in VSCode a new python debug console is loaded. Before I know it I have 20+ and need to start deleting them. After 32 open consoles I get the error "The terminal process terminated with exit code: 256". I changed…
Connor Mote
  • 225
  • 3
  • 11
17
votes
0 answers

Speeding up breakpoints in launch.json

In the last few weeks, I have been getting a notification on my Visual Studio Code: It's taking a while to configure your breakpoints. You can speed this up by updating the 'outFiles' in your launch.json. I do not currently have an outFiles…
orange-donut
  • 201
  • 1
  • 4
17
votes
2 answers

How can I attach to a specific process in Visual Studio Code

When I debug my .net core project in VSC I'm asked for a process Id to attach to. This shows a long list of running processes where I either type or scroll to find a specific process. How can I attach to a specific same process each time I want to…
ghoul
  • 890
  • 1
  • 10
  • 17
17
votes
4 answers

Visual Studio Code's debugger & pipenv

I would like to use Visual Studio Code's debugger to debug my python code, but exception occurs. I use Windows 10, WSL, Debian, Python 3.7.6. Exception has occurred: ModuleNotFoundError No module named 'flask' File "/home/kazu/test/main.py", line…
17
votes
3 answers

How can I solve "Unable to open 'raise.c' " Error?(VSCODE , LINUX)

( OS and Version: Ubuntu 18.4 , VS Code Version: Vscode 1.4 ,C/C++ Extension Version:0.26) Hello, I have read all the articles about "raise.c" and none of them solved my problem, I just wrote a simple OpenCV code which captures webcam's frames. each…
Hamid Reza
  • 492
  • 1
  • 4
  • 14
17
votes
1 answer

How to "fix" debugger in VScode if you have Makefile project on C++?

I have problem ,I have Make project(multiple c++ files ) written on C++ . I am trying using VScode debugger to debug it but it just freezes and dats all, How to fix debugger what parameters in VSCodes json I must change e.t.c? Projects folder…
Inex
  • 502
  • 1
  • 4
  • 11
17
votes
1 answer

Change flask running port in VScode debugger

I do have a flask application running on port 8000 because i have logstash running on port 5000. app.run(debug=True, host='0.0.0.0', port=8000) i can run my app successfully. but when i use VScode debugger it throws OSError: [Errno 98] Address…
Sina
  • 1,055
  • 11
  • 24
17
votes
2 answers

Change code while debugging python program in Visual Studio Code

Is it possible to change the code while debugging in VSCode and that the change will take effect immediately without rerun the code? I'm using Microsoft Python extension.
Adirmola
  • 783
  • 5
  • 15
17
votes
0 answers

VSCode debugger very slow when evaluating variables

I don't know why my VSCode is extremely slow when I debug a net core Webapi, it takes several seconds to evaluate a line when I press F10 and is very frustrating. The problem comes when evaluating local variables. If I hide VARIABLES tab in debug…
Yuri Morales
  • 2,351
  • 4
  • 25
  • 52
16
votes
4 answers

VS Code: How to launch an interactive python terminal while debugging

I have recently started using VS code for Python development. I am unable to figure out how to launch an interactive terminal while debugging, with the program state loaded-in . For example, consider the following code, import numpy as np A =…
exan
  • 3,236
  • 5
  • 24
  • 38
16
votes
4 answers

Configured debug type "python" is not supported for VS Code

I have issues debugging with VS code. I have installed python for vs code extension and reloaded it several time. But when I tried to run in the debug mode, I have the following error The debug type is not recognized. Make sure that you have a…
user3841581
  • 2,637
  • 11
  • 47
  • 72
16
votes
17 answers

vs code not opening up in windows

whenever i try to open my vs code editor, nothing happens it doesn't launch and even there are no errors..!! And i am confused what's wrong here in my vs code. Please anyone help me fix it..!! Below are the verbose command i typed in the…
p4avinash
  • 548
  • 2
  • 4
  • 15
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,575
  • 1
  • 19
  • 18
15
votes
4 answers

VSCode debugger blank page and loading on launch with VS Code 1.76.1 and Chrome 111

I'm facing an issue with VS Code debugger when debugging an Angular app. I have a clean Angular app generated by ng new command. I have added few lines of code to the ngOnInit function. I want to start the chrome debugger. The browser is started…
Jiří Galis
  • 161
  • 2
  • 7