vscode-debugger

Add prefix to debug command in VSCode

随声附和 提交于 2020-08-08 06:27:20
问题 I'm debugging a Python script. My configuration looks something like this: { "name": "debug script.py", "type": "python", "request": "launch", "program": "/path/to/script.py", "console": "integratedTerminal" } When running the script, I need to prefix it with an executable aws-access to give myself access to certain resources on AWS (otherwise I get Permission Denied errors): aws-access python script.py How can I add this prefix to the debug command? Note this is easy to do when executing my

How to disable 'Debug' from showing in package.json

时光毁灭记忆、已成空白 提交于 2020-07-30 05:51:17
问题 How to disable the outlined Debug tip from showing up in package.json above the scripts section: 回答1: The setting is "debug.javascript.codelens.npmScripts": "never", Since it appears as part of the scripts section of the package.json I searched for scripts in the Settings and it was the second entry. 来源: https://stackoverflow.com/questions/62358131/how-to-disable-debug-from-showing-in-package-json

How to disable 'Debug' from showing in package.json

本秂侑毒 提交于 2020-07-30 05:50:33
问题 How to disable the outlined Debug tip from showing up in package.json above the scripts section: 回答1: The setting is "debug.javascript.codelens.npmScripts": "never", Since it appears as part of the scripts section of the package.json I searched for scripts in the Settings and it was the second entry. 来源: https://stackoverflow.com/questions/62358131/how-to-disable-debug-from-showing-in-package-json

Dart / Flutter - Debugger stops on caught exceptions

五迷三道 提交于 2020-07-20 15:50:50
问题 In a relatively simple block of code that checks an API endpoint (determining connection state), I rely on a try..catch as the mechanism to validate if the application can communicate with the server. The issue I'm having is that while debugging, the debugger always stops on the connection line (when the application is offline) even though I am handling the errors internally. Future<bool> isOnline() async { try { // VSCode debugger always stops on this line when no connection await http .get(

Dart / Flutter - Debugger stops on caught exceptions

不想你离开。 提交于 2020-07-20 15:47:50
问题 In a relatively simple block of code that checks an API endpoint (determining connection state), I rely on a try..catch as the mechanism to validate if the application can communicate with the server. The issue I'm having is that while debugging, the debugger always stops on the connection line (when the application is offline) even though I am handling the errors internally. Future<bool> isOnline() async { try { // VSCode debugger always stops on this line when no connection await http .get(

Enable remote debugging on Chrome by default on mac?

旧时模样 提交于 2020-07-18 04:45:10
问题 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 be able to attach the VS Code debugger to this instance, but it looks like I have to start Chrome from the command line with sudo /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 Several questions: Is there

Visual studio code debugger error : "Could not find the task 'gcc build active file'

a 夏天 提交于 2020-07-03 02:23:31
问题 Im trying to configure a C/C++ workspace in Visual Studio Code using Ubuntu Linux, and I don't know how to make the debugger work properly. I copied from the internet a 'tasks.json' file to be able to compile my code with pressing of F5 but I think it causes some sort of a problem with the debugger because every time I try to enter debugging mode, the error "Could not find the task 'gcc build active file' pops up. Here are the 2 jsons : tasks.json { "version": "2.0.0", "tasks": [ { "label":

Visual studio code debugger error : "Could not find the task 'gcc build active file'

南笙酒味 提交于 2020-07-03 02:22:24
问题 Im trying to configure a C/C++ workspace in Visual Studio Code using Ubuntu Linux, and I don't know how to make the debugger work properly. I copied from the internet a 'tasks.json' file to be able to compile my code with pressing of F5 but I think it causes some sort of a problem with the debugger because every time I try to enter debugging mode, the error "Could not find the task 'gcc build active file' pops up. Here are the 2 jsons : tasks.json { "version": "2.0.0", "tasks": [ { "label":

Can't run python code through VS Code. Can't open file ptvsd_launcher.py [Errno 22] Invalid Argument

半城伤御伤魂 提交于 2020-06-27 16:30:47
问题 VSCode was working perfectly a few days ago before this started happening. Attempting to run any python code through VSCode (with or without debugging) Results in this error in the terminal can't open file '"c:/Users/Rastus22/.vscode/extensions/ms-python.python-2019.5.17517/pythonFiles/ptvsd_launcher.py"': [Errno 22] Invalid argument A little after the error shows I get a message telling me there was a timeout waiting for the debugger. There aren't any errors in the python itself, currently