Questions tagged [vscode-debugger]
The Visual Studio Code debugger allows the developer to find errors in a program by pausing and inspecting the code.
2,007
questions
0
votes
1
answer
23
views
How do I navigate VS Code debugger variables without the mouse?
I want to drill down into the variables shown during debugging in VS Code using the arrow keys or indeed anything but the mouse.
I read the debugging docs.
0
votes
0
answers
7
views
VS Code PWA Chrome/Edge Angular webpack map files are not loaded anymore
Breakpoints in my Angular projects are not "bound" any more.
There is no obvious reason for this, since there weren't any changes to the project.
What might has changed are the versions of ...
-1
votes
0
answers
25
views
Visual Studio Code Test Results Tab not showing results (Pytest)
On one laptop I have Vs Code outputting the pytest results to the Test Results tab . It is a verbose log and results. Like the picture below.
After setting VSCode up on another computer I cannot get ...
0
votes
0
answers
10
views
How to debug github cli tool in vs code
I want to debug the "gh pr checks" command in vs code. For that I need to first authenticate using "gh auth login" command. But I am not able to figure out how to first login and ...
-1
votes
0
answers
36
views
Confused By Rust Variable Scoping Behavior And Assignment
I'm pretty new to Rust and I'm writing a resistance training app for myself to help me learn.
I'm parsing text using regular expressions into numeric or string values. I realize the following code ...
1
vote
0
answers
37
views
VSCode PowerShell Debugger - How to pass command line arguments to the PowerShell process
With the standard Code terminal I can pass command line arguments to its PowerShell executable like this, and it works as shown HERE:
"terminal.integrated.profiles.windows": {
"General&...
0
votes
0
answers
14
views
LLDB debugging freezing in code when declaring variable-size std::vector
I'm using VSCode on an M2Pro Macbook. When stepping through my code for one a certain method, VSCode's debugger freezes and is unable to load local variables. After a lot of prodding my code I found ...
0
votes
1
answer
34
views
How to configure debug environment for vscode
I am struggling to debug my project.
The directory structure is as follows:
Root Dir
ModuleA
Submodule1
Submodule2
ModuleB
Submodule3
Submodule4
When debugging a python script within Submodule3 (...
0
votes
0
answers
9
views
How to change run and debug VARIABLES font size
As asked, is there a simple way to change the font size of the run and debug VARIABLES?
"debug.console.fontSize":
"editor.fontsize"
These definitely don't work.
I have tried and ...
0
votes
1
answer
18
views
C++ VsCode Debugger Extra Information Showing
[[enter image description here](https://i.stack.imgur.com/jFwW0.png)](https://i.stack.imgur.com/Mtxnp.png)
For simple program At time of debugging String values for all its memory location and ...
0
votes
1
answer
25
views
How can I bind break points in both my Angular application and library in VSCode, I can only get working in one or the other, not both
I am attempting to get debugging in vscode working for both my application and my lib for Angular 16 at the same time. The structure is as follows:
./root
./root/my-app/src
./root/lib/projects/my-lib
...
0
votes
1
answer
29
views
VSCode Run and Debug ModuleNotFoundError
I have a project which I am writing using VSCode (WSL, venv) and am trying to debug my test_abc.py code.
However I am getting ModuleNotFound error, in the line where I am importing settings from ...
-1
votes
1
answer
40
views
Mingw C++ Debugger skips all break points and inputs in vscode [closed]
I have an issue with debugging in vscode using mingw,
first of all it runs with errors,which shows only in terminal,
then doesnt fucntion as a debugger and just skips to the end
here is lauch.json ...
0
votes
1
answer
52
views
Debugging azure python durable function on vscode
I have faithfully followed this tutorial on how to create a python durable function and everything went well.
However able to start the project from the CLI, within the context of virtual env, I am ...
-5
votes
0
answers
39
views
Java files not working in VS Code! - "Could not find or load main class" ERROR! - I can't "Run" my files in VS Code [closed]
Today, I was going to practice of Java in Visual Studio Code IDE and I wrote my codes correctly, but when I ran it, I saw that it could not read my existing files and the terminal told me in the,
**...
6
votes
1
answer
465
views
VSCode debugger sudden ECONNREFUSED error, cannot connect debugger to Firefox
Debugging with Firefox in VS Code suddenly stopped working on Windows, launching or attaching the debugger always results in error message connect ECONNREFUSED ::1:6000.
Tried deleting all VSCode ...
1
vote
0
answers
36
views
How to get VS Code to take input while debugging C code?
When I try to debug with input for a C program, I cannot input a value. The terminal doesn't seem to execute. I've been having this problem for a while and all the solution in the internet doesn't ...
2
votes
0
answers
93
views
How to debug tests in bun.sh and VS Code
I installed bun.js vs code plugin and have some success debugging typescript files with provided config.
Also able to debug one test file if I set program:${file}
But there is no launch.json example ...
0
votes
0
answers
16
views
Error with launch.js debugging Parse-Server in Visual Studio Code
i am trying to fix an error in parse-server when signing up using Facebook. I try to save PFUser after signed up but fails with error 206 - cannot modify user
This happens when verifyUserEmails is set ...
0
votes
1
answer
42
views
VsCode debuger stop Suddenly in one of ASP.NET Core action
When I run a action in my ASP.NET Core app debugger, I get this error:
The program has exited with code -1073741819 (0xc0000005).
My Action is this but never run in app:
[HttpPost]
public async ...
0
votes
0
answers
9
views
Unverified breakpoints with vscDebugger on VSCode
I have set up R Debugger on VSCode but it doesn't hit the breakpoints because they're "unverified". I have updated R to version 4.3.1 and reinstalled the extensions and the vscDebugger ...
-1
votes
0
answers
26
views
Problems while debugging my program using VSCode and mingw
i can't see output and input in integrated terminal in Vscode using C program. However when i switch on external console in true. I can get values and put it down.
I have these .jsons files:
Launch:
{
...
0
votes
1
answer
18
views
VSCode Debugger Launch doesn't work on arch firefox
I am on arch linux.
I ran live server on javascript file, then F5 on that file with below configurations
{
"version": "0.2.0",
"configurations": [
{
...
0
votes
0
answers
9
views
Remember data and test tables created in debug mode in VS Code
I have noticed that my colleague, who uses PyCharm, can access temporary tables created in debug mode, after exiting the debug mode. Is there a way to do this in VS Code?
0
votes
0
answers
31
views
How to debug a project half by python half by bash, both will interact in vscode
I have a project that runs on centos. It's mostly python and bash in it. right now I can debug them separately in vscode. but I want to debug them together. For example a start.sh has
python3 . /build....
0
votes
0
answers
25
views
How to get AWS SAM Lambda TypeScript debugging working in VS Code?
I can't get local debugging to work for a Lambda written in Typescript.
I'm on macOS Ventura, Docker Desktop 4.21.1, SAM 1.95.0, and Node 18.x. Project was generated with SAM, and the TS version is 4....
0
votes
1
answer
22
views
Vscode python debug works uncorrectedly in Windows + shell terminal environment
Vscode Python debug problem
My environment
Windows 11
VScode 1.81.1
MingW64 Bash (as VScode integrated terminal)
When pressing F5 for debugging python file, terminal shows:
# cmd /C "D:\Sci\...
-2
votes
0
answers
53
views
Visual Studio Code: Unable to start debugging
In my opinion, the code is right and I also configure launch.json.
The program actually works in terminal, but it can not be debugged.
There is my code.
#include <stdio.h>
//声明来自外部文件的函数
extern ...
0
votes
0
answers
20
views
Unable to debug typescript using VSCode
New to typescript. Trying to setup VSCode for debugging TypeScript.
I have followed https://code.visualstudio.com/docs/typescript/typescript-debugging page and other setup topics such as this https://...
0
votes
0
answers
45
views
How to run a fully container-based Python dev environment in VSCode
TL;DR: Why does this need to be started twice before it works?
I am trying to set up a Python development environment in my VSCode. The app will run in a container in production, so why hassle with ...
0
votes
1
answer
22
views
How to prevent python debugger in Visual Studio Code from stopping within try catch/except statement [duplicate]
I am trying to figure out how to set the python debugger (IntelliSense Pylance downloaded as extension in vscode) to not stop for errors within a try except statement.
For example, in the code below x ...
0
votes
0
answers
28
views
Exception Occurs in STM32 Reset Handler using VSCode GDB
I'm attempting to debug firmware in Vscode using GDB from the STM32CubeCLT toolset. The Vector Table has been relocated to 0x8008200. Using the STM32CubeIDE, I have no problem debugging the software ...
0
votes
0
answers
22
views
--user-data-dir doesn't work in VSCode launch.json
Since I wanted to use the same extensions, bookmarks, settings when debugging a Chrome app through VSCode, I wanted to have setting up --user-data-dir to fixate the data directory it uses.
You know, ...
0
votes
0
answers
13
views
How to evaluate the shell command and use its output as value for an option in launch.json
I have the following configuration in my launch.json to debug my C++ program, but it's kind of cumbersome to find the PID each time.
{
"type": "lldb",
"request": &...
2
votes
0
answers
32
views
Debugging WebAssembly
I'm looking for a solution for debugging .wat files, which are WebAssembly Text Format files, preferably using Visual Studio Code. Does anyone have a recommended approach or extension for debugging ....
0
votes
1
answer
31
views
Execution failed for task ':app:checkDebugAarMetadata'. in VSCode
Good day! I am a beginner in Visual Code and as I was about to debug my app, this came as an error in my debug console
Execution failed for task ':app:checkDebugAarMetadata'.
> Multiple build ...
-1
votes
1
answer
47
views
VS Code searching Python under Roaming instead of conda env: "The system cannot find the path specified"
I have the same repository checked out on the same branch to two different directories. Even using the same conda environment, I can run one in VS Code, but not the other. The .vscode/settings.json ...
0
votes
1
answer
23
views
Connecting to VM Service at ws://127.0.0.1:52425/bEbT8kEcqnY=/ws
I have the following error in VS Code when I try to run a Flutter project:
Connecting to VM Service at ws://127.0.0.1:52425/bEbT8kEcqnY=/ws
I have already tried the following trials but noting fixed ...
0
votes
0
answers
27
views
VS Code: launch: program 'c:\Windows\System32\projects\helloworld\build\Debug\outDebug' does not exist
I recently downloaded VS Code and have been encountering this error (launch: program 'c:\Windows\System32\projects\helloworld\build\Debug\outDebug' does not exist) every time I try to debug my program....
1
vote
1
answer
114
views
Simple hello world segfaults in VSCode Run C/C++ file
I am trying to run a simple Hello World program in VSCode, but it is crashing with a segmentation fault. Here is the code:
#include <iostream>
int main() {
std::cout << "Hello, ...
0
votes
1
answer
27
views
Debug Excel Add-In using VS Code without MicrosoftEdgeWebView2 installed
I'm trying to migrate my dev env to VSCode and so far I can't get it to work if I have MicrosoftEdgeWebView2 installed.
I've installed the "Microsoft Office Add-in Debugger" which I think is ...
0
votes
1
answer
23
views
What's the difference between webpack:/// and webpack:?
I am trying to setup launch.json in VS Code to debug Angular application. I find from online research that we need to set sourceMapPathOverrides to set source mapping path. I have seen some different ...
-1
votes
1
answer
38
views
Running python debugger from specific terminal in VSCode on the remote
Following issue: I'm working on the remote server to which I connect with VSCode. I want to develop my python code (mostly statistical analysis and usual matplotlib visualization, nothing too fancy). ...
0
votes
0
answers
20
views
Debugging a Nextjs App with Custom Server (Express)
I'm not finding any clear posts about this specific problem so I'll open a thread.
I'm trying to use the VScode debugger to debug a Next.js application wrapped in a custom Express.js server. My usual ...
0
votes
1
answer
36
views
VSCode Python debugging with context manager
I have a code block such as the following:
with Validator.start_server():
return manager(foo=bar)
Where Validator.start_server() is set up as follows:
class Validator:
@staticmethod
def ...
0
votes
0
answers
38
views
How to open and read VSCode's debugger trace file ("Error: Could not find an importer for the provided eventData.")
I have the following launch.json for debugging a web app:
"configurations": [
{
"type": "chrome",
"request": "launch",
"...
2
votes
2
answers
46
views
Variable Equality Breakpoint not-working in Visual Studio Code
I am working on Python and I am passing a parameter named id to my fucntion and i want to pause the execution for debugging purpose (check the value of response) if and only if the value of id is ...
1
vote
0
answers
57
views
How to debug cobra command test with VS Code?
I have a go program using cobra commands. I can run and debug a command with
{
"name": "Reporting1",
"type": "go",
"request": "launch&...
1
vote
1
answer
42
views
How/Where is the VS Code task named "tsc: build - tsconfig.json" defined?
I'm new to VS Code debugging setup so I'm hoping for someone who will provide me with a deeper understanding of how it works. Please note that I have read the documentation, but preLaunchTask property ...