vscode-debugger

How do I debug individual Django tests in vscode?

爷,独闯天下 提交于 2020-06-17 08:56:44
问题 I added a launch configuration that allows me to run all tests in Django and another that allows me to run the server, both of these work fine. I am looking for a way to debug an individual file, but using ${file} in the arguments gives a normal path which django doesn't like. I want a way to change ${file} into a python path so that I can debug my tests on a single file. python manage.py test --noinput --keepdb python.path.to.my.file works in the command line. The following configuration

How do I debug individual Django tests in vscode?

僤鯓⒐⒋嵵緔 提交于 2020-06-17 08:55:08
问题 I added a launch configuration that allows me to run all tests in Django and another that allows me to run the server, both of these work fine. I am looking for a way to debug an individual file, but using ${file} in the arguments gives a normal path which django doesn't like. I want a way to change ${file} into a python path so that I can debug my tests on a single file. python manage.py test --noinput --keepdb python.path.to.my.file works in the command line. The following configuration

VS Code opens a new debug console every time I build/run

泄露秘密 提交于 2020-06-13 19:55:47
问题 Every time I build or run a program in VSCode a new python debug console is loaded. Before I know it I have 20+ and need to start deleting them. After 32 open consoles I get the error "The terminal process terminated with exit code: 256". I changed the terminal from the default console to git bash recently. How can I stop this? 回答1: A way around this issue is to stop VS Code from redundantly printing to the TERMINAL during debugging in the first place. Since it prints to the DEBUG CONSOLE as

What does green debugger pointer mean in VS Code?

房东的猫 提交于 2020-05-26 12:05:34
问题 As compared to a normal yellow position pointer during a debug session, what does the green arrow mean? 回答1: I think it's when Javascript is hoisting variables. I learnt it from this Udemy course ( you can preview the video). https://www.udemy.com/course/understand-javascript/ The Execution Context - Creation and Hoisting 来源: https://stackoverflow.com/questions/51940362/what-does-green-debugger-pointer-mean-in-vs-code

What does green debugger pointer mean in VS Code?

一笑奈何 提交于 2020-05-26 12:05:25
问题 As compared to a normal yellow position pointer during a debug session, what does the green arrow mean? 回答1: I think it's when Javascript is hoisting variables. I learnt it from this Udemy course ( you can preview the video). https://www.udemy.com/course/understand-javascript/ The Execution Context - Creation and Hoisting 来源: https://stackoverflow.com/questions/51940362/what-does-green-debugger-pointer-mean-in-vs-code

Debug PHP using Docker in VSCode

孤者浪人 提交于 2020-05-14 10:39:14
问题 It looks like everything is OK, but VSCode does not stop debugging. I have a docker container running a PHP image. What I need to do to stop in the break points? I can't see errors in the log, quite the contrary, it seems that they are saying that the break points were well configured, and that the code ran correctly. The container has the IP 172.22.0.2 , my host has the IP 172.22.0.1 The file xdebugo.so exists inside the container: /usr/local/lib/php/extensions/no-debug-non-zts-20190902

VSCode, MacOS Catalina - doesn't stop on breakpoints on C/C++ debug

筅森魡賤 提交于 2020-02-01 03:54:27
问题 I'm trying to make breakpoints work on C code developed using VSCode on Mac. My code seems to compile and run just fine (thanks to 'openssl/crypto.h' file not found on vscode B.T.W) but I don't get any breakpoints, not even on start using "stopAtEntry": true or by attaching to a running process. My tasks.json and launch.json are very standard: { "tasks": [ { "type": "shell", "label": "clang build active file", "command": "/usr/bin/clang", "args": [ "-g", "${file}", "-o", "${fileDirname}/$

How do I debug a built-in Python command, package or module?

不打扰是莪最后的温柔 提交于 2020-01-24 19:31:07
问题 I would like to debug some of the basic packages that come with the Python install and/or are built-in packages, including pip and venv . The desire comes from an error message of file permissions (unable to access a file with an "unprintable file name") some of my team is getting running these commands - see this question for details. Question How do you debug the Python source code when trying to catch issues in the main python executable, or when directly running a base python module (see

Having problems with debugging in .vscode

好久不见. 提交于 2020-01-24 04:37:08
问题 I've had a big problem with debugging in VSCODE lately. I have tried to fix it my self by searching the site and reinstalling some of my extensions. Instead of showing my results in the debug console it writes the following output to my terminal : cd /Users/AVFL/Documents/Programming ; env "PYTHONIOENCODING=UTF-8" PYTHONUNBUFFERED=1" /usr/local/bin/python3 /Users/AVFL/.vscode/extensions/ms-python.python-2018.3.1/pythonFiles/PythonTools/visualstudio_py_launcher.py /Users/AVFL/Documents

How can I solve “Unable to open 'raise.c' ” Error?(VSCODE , LINUX)

蓝咒 提交于 2020-01-16 08:36:34
问题 ( OS and Version: Ubuntu 18.4 , VS Code Version: Vscode 1.4 ,C/C++ Extension Version:0.26) Hello, I have read all the articles about "raise.c" and none of them solved my problem, I just wrote a simple OpenCV code which captures webcam's frames. each time I run my code it frequently shows an error. the error message is: Unable to open 'raise.c': Unable to read file (Error: File not found (/build/glibc-OTsEL5/glibc-2.27/sysdeps/unix/sysv/linux/raise.c)). launch.json is: { // Use IntelliSense to