vscode-debugger

Is it possible to blackbox vendor code when using VSCode's node debugger?

你离开我真会死。 提交于 2019-12-04 00:33:32
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 can't seem to find an answer. Is it possible to exclude (for example node_modules/ ) from debugging? Jarede I haven't tried this I must admit, barely got round to use debugging in vscode just yet, but it does appear that blackbox-ing was supported in v1.8: https://code.visualstudio.com/updates/v1_8#_node-debugging We have added a feature to avoid code

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

北慕城南 提交于 2019-12-03 21:27:01
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: "contributes": { "menus": { "editor/context": [{ "command": "extension.showVariables", "group": "navigation" }]

How to make vscode not wait for finishing a preLaunchTask?

不羁岁月 提交于 2019-12-03 15:33:27
问题 I have a debug setup in Visual Studio code where I run an external binary which can execute my JS files (using duktape). The debug adapter currently only supports attach requests (not launch) so I have to run the binary before I can debug the JS scripts. In order to avoid having to start the application manually I created a task for it and set that in my launch.json file: { "version": "0.2.0", "configurations": [{ "name": "Attach MGA", "type": "duk", "preLaunchTask": "debug mga", "request":

How to change string representation of objects in Nodejs debug console view

家住魔仙堡 提交于 2019-12-03 06:20:06
How do I change the string representation of an object instance in nodejs debug console. Is there a method (like toString() in .NET) I can override? Consider the following code: class SomeObject{ constructor(){ this._varA = "some text"; this._varB = 12345; this._varC = "some more text"; this._varD = true; this._varE = 0.45; } toString(){ return "custom textual rapresentation of my object"; } } var array = []; array.push(new SomeObject()); array.push(new SomeObject()); array.push(new SomeObject()); console.log(array); This produces the following: However in other environments and programming

How to make vscode not wait for finishing a preLaunchTask?

…衆ロ難τιáo~ 提交于 2019-12-03 05:07:13
I have a debug setup in Visual Studio code where I run an external binary which can execute my JS files (using duktape). The debug adapter currently only supports attach requests (not launch) so I have to run the binary before I can debug the JS scripts. In order to avoid having to start the application manually I created a task for it and set that in my launch.json file: { "version": "0.2.0", "configurations": [{ "name": "Attach MGA", "type": "duk", "preLaunchTask": "debug mga", "request": "attach", "address": "localhost", "port": 9091, "localRoot": "${workspaceRoot}", "stopOnEntry": false,

VSCode + Xdebug + PHP configuration

旧时模样 提交于 2019-12-02 15:23:34
问题 I'm trying to set up Xdebug with VScode, but whenever I set breakpoints it's just ignoring it. I installed https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug and followed the instructions (Windows), I also used the Xdebug Wizard, here is my configuration : Vscode - launch.json { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": 9000 }, { "name": "Launch currently open script", "type": "php", "request": "launch", "program": "${file}", "cwd": "$

VSCode + Xdebug + PHP configuration

a 夏天 提交于 2019-12-02 07:41:47
I'm trying to set up Xdebug with VScode, but whenever I set breakpoints it's just ignoring it. I installed https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug and followed the instructions (Windows), I also used the Xdebug Wizard, here is my configuration : Vscode - launch.json { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": 9000 }, { "name": "Launch currently open script", "type": "php", "request": "launch", "program": "${file}", "cwd": "${fileDirname}", "port": 9000 } php.ini zend_extension = D:\wamp\bin\php\php7.1.16\ext\php_xdebug-2.6.1-7.1

How to debug Angular application in VSCode using Edge browser?

那年仲夏 提交于 2019-12-01 04:19:19
问题 I am using Edge extension. Below is configuration in launch.json : "configurations": [ { "name": "ng serve", "type": "edge", "request": "launch", "url": "http://localhost:4200/", "webRoot": "${workspaceFolder}", "sourceMaps": true }] Here is more detailed steps as per documentation in VS Code: npm install -g @angular/cli, ng new my-app Install Edge extension Reload Project npm start Go to the Debug view ( Ctrl + Shift + D ) and click on gear button to create a launch.json debugger

How to display current values of VS Code's predefined variables (such as “${workspaceFolder}”)?

只谈情不闲聊 提交于 2019-11-30 13:43:55
I am facing an issue with VS code debugger while trying to debug some angular typescript source code, and I think the reason is that some of those VS Code Variables have the wrong value - as suggested here . I'd like to follow that advice, but I see no way how to query the VS code variables (e.g. display the current values of these variables for my project). One of these variables is ${workspaceFolder} They are used in VS code's config files, for this example in the launch.json file. Do you know if there is a way to display those values? For example, log the values or show them in an alert

How to display current values of VS Code's predefined variables (such as “${workspaceFolder}”)?

筅森魡賤 提交于 2019-11-29 18:40:01
问题 I am facing an issue with VS code debugger while trying to debug some angular typescript source code, and I think the reason is that some of those VS Code Variables have the wrong value - as suggested here. I'd like to follow that advice, but I see no way how to query the VS code variables (e.g. display the current values of these variables for my project). One of these variables is ${workspaceFolder} They are used in VS code's config files, for this example in the launch.json file. Do you