All Questions
Tagged with vscode-tasks vscode-debugger
68 questions
0
votes
1
answer
92
views
VS Code Debug Extension: Problem to get the vscode-mock-debug project running
I wanted to follow the steps in Development Setup For Mock Debug. After I run the Extension launcher (F5) there were plently errors being thrown in my face:
Error 1:
Error 2:
Therefore, debugging ...
1
vote
0
answers
60
views
vscode disassembly view displays nothing but ?? bytes
I am trying to debug my c++ program running on bochs by vscode. However, when I try to open the disassembly view, it displays nothing but ?? bytes.
However, I am able to see the disassembly codes by ...
0
votes
0
answers
48
views
vscode debugger wont stop on breakpoints
I'm trying to use the debugger to analyze a C program, but isn't working
this is launch
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing ...
0
votes
1
answer
214
views
Attach a debugger to a flask process started by tasks.json in vscode
I have the following tasks.json in my workspace:
{
"version": "2.0.0",
"tasks": [
{
"label": "Run Locally",
&...
0
votes
0
answers
12
views
How can I get back code command in previous original vs code from vs code insiders?
Actually I did and I got usefull. But now I want to go back to my previous vs code editor from the vscode insiders. But now if I use code. command in my vscode it is opening vscode insiders. How can I ...
2
votes
1
answer
903
views
How can I reuse configuration parts VS Code launch configurations?
I have a launch.json file in my project like this.
And I set up multiple configurations to run a nodejs script for building and deploying my app which works fine.
The problem is that there could be a ...
0
votes
0
answers
90
views
Is there a way to launch a debugger with a set up launch,.json from inside a vscode task.json?
I currently have a few steps of tasks chained together that builds and deploys a server for my Java application. Currently, I can run the debugger either by:
Selecting the debugger from the dropdown ...
0
votes
0
answers
268
views
Vscode run build task not working... it begins but never ends
i have a problem with build function in vscode (language C) because when i click on "run build task", "debug C/C++ file" or "Run C/C++ file" vscode starts building my ...
0
votes
1
answer
1k
views
Configuring OpenOCD debug on VSCODE with the Raspberry Pico as a target using the Debug-Probe - No working solution found
I have been pulling my hair out trying to configure VSCode on MacOS to support the above mention configuration.
The debugging works on the command line: I started the OpenOCD server in a separate ...
1
vote
3
answers
512
views
Could not load source './csu/../csu/libc-start.c': 'SourceRequest' not supported
Could not load source './csu/../csu/libc-start.c': 'SourceRequest' not supported..
Here's my basic c code. I'm trying to set a breakpoint on _start. And see step by step where it goes on inside the ...
0
votes
1
answer
946
views
How to set up VS Code debugger for Angular app, which is inside+run-by .Net Core Api project?
Projects' structure:
APIProject
↓AngularApp
↓.vscode
launch.json
tasks.json
package.json
Startup.cs
When running APIProject using dotnet watch run, I want to automatically run ...
2
votes
1
answer
1k
views
Failed to parse json file, possibly due to comments or trailing commas
Whenever i am clicking on Run and Debug in vs code getting this error.
"Failed to parse json file, possibly due to comments or trailing commas."
how can i solve this?
I tried deleting the ....
1
vote
0
answers
51
views
VSCODE - (launch.json) What do I change to instantly run the php file instead of just launching localhost/
{
"name": "Launch built-in PHP CLI server",
"type": "php",
"request": "launch",
"runtimeArgs": [
...
1
vote
1
answer
321
views
VSCode debugger not stopping at breakpoint (with -g compilation)
I have a C++ project that I am trying to debug with VSCode debugger, but it doesn't stop at breakpoints (at execution, breakpoints says "Module containing this breakpoint has not yet loaded or ...
0
votes
0
answers
168
views
How to use the same vscode shell for sourcing enviroment first and launching the gdb
I am trying to launch a specific gdb debugger that will need first to source the needed environment script. I don't want to create one script that does the environment sourcing and execute the gdb ...
-1
votes
1
answer
417
views
VSCode: execute command when focus on terminal view?
I've set "ctrl + end" to execute this multicommand sequence,
When I focus on the terminal view, executing the command will output some characters in the terminal,not execute the actual ...
0
votes
1
answer
122
views
Unable to link .lib to VSCode-Undefined reference to `DAQmxCreateTask'
Building a C Code using Visual code studio having a third-party Library file from National Instruments. I have already included header file "NIDAQmx.h" to the code. The library file is still ...
-1
votes
2
answers
41
views
Vs Code Issue: no code output. how do i fix this?
I am very new to coding and am trying to write a practice script for webscraping in VS Code Editor. But every time i run the script i get this issue of there being no real output. Can you please ...
1
vote
0
answers
608
views
The terminal process failed to launch: A native exception occurred during launch (VS Code Integrated Terminal)
I am developing a web application with ASP.NET MVC. To run it, I use the following shell commands:
dotnet restore ProjectDirectory
and then
dotnet run --project ProjectDirectory
If I run them in my ...
0
votes
0
answers
376
views
vscode iostream file not found on macos gnu g++
I installed GNU GCC on macos Ventura using homebrew, it installed g++12. It is installed at /opt/homebrew/Cellar/gcc/12.2.0
I tried to write basic c++ program and tried to run/debug it in vscode using ...
0
votes
2
answers
763
views
Visual Studio Code - Build and debug variable named makefile and exe
I use VSC to compile and debug a CPP generated test executable. The name of the executable and makefile changes depending on which build I'm debugging, and importantly there is only ever a single ...
2
votes
1
answer
240
views
VS Code cannot find similar task, only the last one
The closest to my issue is this SO question, but I think something else is going on here. I have two launch configurations each which call a similar preLaunch task, start-local and start-dev. The body ...
1
vote
1
answer
3k
views
debug with VScode a fastAPI project built with docker-compose with a postgresql database
I would like to be able to make my code stop on breakpoints with VScode. My project is built with docker-compose and works without debugging on port 8000.
Here are my configurations files:
docker-...
-2
votes
1
answer
697
views
Error in Compiling C++. It's showing fatal error: Directory not found. Also .exe is not getting formed for the cpp file
On pressing the run button it is showing me this error.
As a beginner, I have no idea what should I do next.
1
vote
1
answer
210
views
what's the VScode shortcut for breaking words of a Horizontal line?
is there a shortcut of vscode editor to turn line from horizental to vertical ,convert this :
<View style={{flex:1,marginTop:20, paddingHoizental : 20, backgroundColor : '#FFF'}}>
into this
<...
3
votes
3
answers
6k
views
Run a specific launch from task in vscode
When I open the project on vscode, I want it to start running in debug mode.
I have a lunch configuration in the launch.json file which starts the project in debug mode when I hit "F5".
In ...
1
vote
0
answers
937
views
VSCode Run Launch configuration via Tasks.json
I currently have a tasks.json that runs 3 tasks together, grouped in a panel on folder startup:
tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": &...
6
votes
1
answer
2k
views
Can't debug ASP.NET Core Webapp 6.0 in VSCode
Earlier, I created my ASP.NET Core web app using the 6.0 preview build, and I was able to debug it in VSCode.
Then, I upgraded my app to the final 6.0 release a week ago. Since then I could no longer ...
0
votes
1
answer
1k
views
how to do map dependencies with code maps using VS code on ubuntu?
I encountered this link: https://learn.microsoft.com/en-us/visualstudio/modeling/map-dependencies-across-your-solutions?view=vs-2019, and I was thinking to follow it to generate code maps for my c++ ...
0
votes
1
answer
768
views
VS Code custom run configuration for D
Is there a way to add a custom run configuration that would run a current file in the terminal?
Currently no extensions exist for debugging .d files on Visual Studio Code. I still can manually enter ...
0
votes
0
answers
82
views
How to get current folder basename in vscode tasks and launch file?
I wanna make a C++ program that will all of its code into the an executable file with the current folder name. And this is because I wanna make a project like thing. And the project name is the ...
0
votes
2
answers
2k
views
Toggle Sidebar visibility and Toggle Panel visiblity together in vscode?
I want to make a keybinding:
When the sidebar is visible, the bottom panel is not visible,
press to hide the sidebar, press again to show both.
When the sidebar is not visible, the bottom panel is ...
1
vote
1
answer
2k
views
How to set environment variables with bat file before starting python debugging in vscode
I'm doing simulations with Adams Car 2020 and Python. I use the internal Adams Python functionality. In this internal python environment I don't have matplotlib available for example. Therefore I've ...
9
votes
2
answers
2k
views
In VSCode, how to debug a python program inside a bash shell script
I have written a shell script, which will do some configurations first before launching a python program. (e.g., downloading the data, pip install some packages, setting environment variables, etc. ...
0
votes
1
answer
2k
views
Stuck waiting for prelaunch task
I'm trying to run my debug environment as a Poetry session, so I can properly debug encapsulated.
So, my launch.json is straightforward:
{
"name": "Poetry",
...
0
votes
1
answer
134
views
What's the difference of Launch via NPM and Launch via npm in Visual Studio Code debugging
There are two types of configurations in vscode debugging,
Launch via NPM and Launch via npm
I tried but didn't find the docs anywhere
What's the difference between those?
// #launch via NPM
...
6
votes
2
answers
2k
views
VSCode make launch configuration fail if preLaunchTask fails
I have a launch configuration that runs a bat script as a pre launch task. Sometimes, the bat script fails to build my project. However, the debugging task still runs, which is really annoying, and ...
0
votes
1
answer
468
views
PreLaunchTask could not find the task - Powershell
I am attempting to make a code-workspace that handles a powershell module and a few automation scripts. So for this example my folder structure looks like this -
general folder structure
- workspace....
12
votes
3
answers
14k
views
How to start Azure function locally and attach debugger to process dynamically via launch.json and tasks.json?
Using .NET Core on a Mac with Visual Studio Code, I'm trying to host an Azure Function locally, and attach the debugger to it.
Manually, I can get it to work by starting the function with func host ...
0
votes
1
answer
1k
views
VSCode tasks.json and launch.json for WinExe dependent on dll
I'm trying - for the sake of learning - to write tasks.json & launch.json for VSCode to build this project: ExportableDataGrid
There are two .csproj - one builds a 'Library' and the other a '...
3
votes
0
answers
2k
views
VS Code console.log() appears in developer tools instead of debug console
I've been working on a VS Code extension using the Hello World example generated by Yeoman (yo code). The console.log() message only shows up in the Developer Tools, but not in the Debug Console like ...
7
votes
2
answers
7k
views
Run custom commands as run configurations in Visual Studio Code
I'm trying to figure out how to make a custom run configuration in Visual Studio Code, and am not succeeding in finding any documentation describing my use case.
I want to make a Run Configuration ...
1
vote
1
answer
1k
views
Debug C++ Standard Library with Visual Studio Code on macOS
I am using Visual Studio Code on macOS with the Microsoft C/C++ Extension to evaluate the real usability and productivity in a production environment.
In my scenario, I am using Clang/LLVM compiler ...
3
votes
3
answers
6k
views
Setting up VS code for c++ on mac
I am trying to follow this guide exactly
https://code.visualstudio.com/docs/cpp/config-clang-mac
Everything works fine until I reach the step "Debug helloworld.cpp", I am able to use the &...
1
vote
0
answers
340
views
How to run a task on stop event in debugging?
I tried the postDebugTask but it doesn't seem to run the task at all. I've skimmed this as well to no avail.
./.vscode/launch.json
{
"version": "0.2.0",
"...
0
votes
2
answers
668
views
g++ builds in wrong directory: ${workspaceFolder}\file.exe instead of ${fileDirname}\file.exe
Summary:
While in tasks.json the destination argument for g++ is clearly "${fileDirname}\\${fileBasenameNoExtension}.exe", it decides to build in "${workplaceFolder}\\${...
0
votes
1
answer
610
views
Starting Spring Boot Application based on maven in "test scope"
i have written a Spring Boot Application which should use H2 during development and mariadb for integration tests and production. For developing i use Visual Studio Code in WSL2 with Java Extensions.
...
2
votes
1
answer
674
views
Set an env variable using a CLI tool before launching the debugger in VSCode
I have a Go application which uses a Postgres DB on Cloud (Heroku) and sets the DB Url as an environment variable calling the Heroku CLI as per guidelines.
So the app can be launched with the command
...
1
vote
2
answers
1k
views
Use VS Code extension variable in task.json
How I can define a variable with extension scope, and the same can be used in task.json.
It's like I can set the value of SelectedAppId variable and the variable I can use in task.json
{
...
3
votes
2
answers
7k
views
Configuring launch.json, task.json and settings.json for debugging in VS Code with git bash as default terminal?
I am trying to configure the Debugger in VSCode
I looked through official documentation to setup the VSCode debugger for C/C++ but it's not working.
Documentation states the steps for setting up ...