vscode-debugger

How do I set up VS Code to debug JS running under asp.net MVC

和自甴很熟 提交于 2019-12-13 03:18:14
问题 I'm using the System.Web.Optimization default bundler - running with optimizations disabled locally, and trying to get VS Code debugger hooked into chrome. VS Code is talking to chrome OK (I can see console output in VS code), but I'm getting breakpoint ignored because target path not found when trying to add a breakpoint { "type": "chrome", "request": "launch", "name": "Launch Chrome against localhost", "url": "http://localhost:54330", "webRoot": "${workspaceFolder}" } Here's a sample line

VsCode debugger not hitting breakpoint if is not in the current file

浪尽此生 提交于 2019-12-11 17:52:51
问题 I would expect debugger to hit breakpoint regardless where the breakpoint is in the stack. Having 2 files: start.ts import { transformString } from './Transform' transformString('foo') Transform.ts export const transformNitroToClip = () => { // some code => my breakpoint // some code } With this configuration: { "type": "node", "request": "launch", "name": "Single File", "args": ["${relativeFile}"], "runtimeArgs": [ "-r", "ts-node/register" ], "cwd": "${workspaceFolder}",

How to interactively debug a NodeJS test suite in VS Code?

℡╲_俬逩灬. 提交于 2019-12-11 02:03:29
问题 I have a Jest test suite that I would like to debug using the VS Code interactive debugger. That works fine for normal NodeJS programs ( "program": "foo.js" in launch.json ). But the test suite ( foo.test.js ) isn't a self-contained program, it has to be run from Jest. Is there a way to achieve this? The particular code is here: https://gitlab.com/stevage/guess-projection 回答1: Debugging standard Jest tests This doc in Microsoft's vscode-recipies GitHub repo describes how to set up VS Code for

VS Code: How to access debug variables from within extension?

怎甘沉沦 提交于 2019-12-09 14:09:15
问题 I am writing an extension for visual studio code where I want to evaluate the current variables of a javascript debug session. These variables are normally shown when one have open the debug pane under the section VARIABLES . See the attached screenshot. I want to get access to these variables when the user right clicks the editor, but I don't know how. My current extension setting for this is like that: in the package.json I have registered a menu contribution along with a command:

How to disable “just my code” setting in VSCode debugger?

Deadly 提交于 2019-12-06 19:04:34
问题 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? 回答1: For this you need to change the launch.json file. Inside the launch.json file you have to set "justMyCode" to false . As described here. (I was pointed to that link through this post on the Visual Studio Code site.) 回答2: Just adding "justMyCode": false to launch.json

Visual Studio Code PHP Debug does not stop on breakpoints for Docker project

帅比萌擦擦* 提交于 2019-12-06 13:34:01
问题 I cannot get the VS Code extension "Php debug" to stop on any breakpoints. I am running the php project (that I want to debug) from Docker on my Ubuntu laptop. Any advice greatly appreciated. My set up: PHP version on Docker: 7.1 XDebug version on Docker: 2.6.1 PHP Debug version in VS Code (on my laptop): 1.12.6 My VS Code launch.json file is: { "version": "0.2.0", "configurations": [ { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": 9000, "log": true, "pathMappings":

Debug ExpressJS server side code using Visual Studio Code

狂风中的少年 提交于 2019-12-06 04:59:59
问题 i have made a simple CRUD app using express: 4.13.4 gulp: 3.9.1 mongodb :v3.0.6 reactjs : 15.0.2. node : 4.0.0 For server side code i hear it is possible to debug via Visual Studio Code (v1.1.1.) . From git bash i start the app via gulp serve .But i am at a loss to find out how to Start debugging! A snippet of my gulp task. gulp.task('serve',['bundle','start-server'],function(){ browserSync.init({ proxy:'http://localhost:3000', port:9001 }); }); When we click the debug button on VS Code to

How to debug a nodemon project in VSCode

故事扮演 提交于 2019-12-05 20:02:25
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 file which is the main app file. And the application runs on node version 4.6.2 and on Port 8080 . In usual case I run the App using npm run dev command. Following is my launch.json file - { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go

How to disable “just my code” setting in VSCode debugger?

纵饮孤独 提交于 2019-12-05 01:11:35
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? For this you need to change the launch.json file. Inside the launch.json file you have to set "justMyCode" to false . As described here . (I was pointed to that link through this post on the Visual Studio Code site.) Just adding "justMyCode": false to launch.json doesn't work. You need to add a separate config in launch.json like below. FYI each {} represent a config.

Visual Studio Code PHP Debug does not stop on breakpoints for Docker project

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 19:12:56
I cannot get the VS Code extension "Php debug" to stop on any breakpoints. I am running the php project (that I want to debug) from Docker on my Ubuntu laptop. Any advice greatly appreciated. My set up: PHP version on Docker: 7.1 XDebug version on Docker: 2.6.1 PHP Debug version in VS Code (on my laptop): 1.12.6 My VS Code launch.json file is: { "version": "0.2.0", "configurations": [ { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": 9000, "log": true, "pathMappings": { "/var/www/html": "/home/chris/my-test-debugging-project" } }, { "name": "Launch currently open