All Questions
53 questions
1
vote
0
answers
65
views
VS Code Python Debugger fails du to incorrect command line
I'm trying to use the Python Debugger inside VS Code (for the first time) but it fails at start up. As far as I can tell, the command line used by VS Code is incorrect and I need help to fix that.
...
1
vote
0
answers
93
views
Is there a way to disable "Just my code" debugging in Visual Studio 2022 for Python?
In Visual Studio 2022, I went to "Debug" => "Options" => "General" and unchecked "Enable Just My Code"
I also went to "Debug" => "...
0
votes
0
answers
26
views
detecting debug mode for python in visual studio
Let's say I have a file called script.py which I am running under Visual Studio 2022 Community Edition. I am running script.py by right clicking on the window and choosing `Start with debugging' or '...
2
votes
1
answer
740
views
Setting Debug points for a Chainlit application
I've built my first chainlit app. It's very simple and it runs like this.
Starting backend:
cd ./chainlit-backend
chainlit run app.py -h
Start the React app:
cd ./frontend
npm i
npm run dev
How do I ...
2
votes
1
answer
29
views
VS2019 always stops at raised errors in Python, even if they are disabled in the Exceptions window
I can't figure out a way to stop Visual Studio 2019 to not stop on raised exceptions (handled in code). The Python exceptions are disabled in Exception Settings. Does anyone know a way to do this?
0
votes
1
answer
2k
views
Debugger for python in Visual Studio 2022 doesn't work
I usually use Visual Studio Community 2022 as my IDE for programming (usually in C++). Once I had some little automation tasks that were way faster and easier to do in python than in C++ so I ...
1
vote
0
answers
116
views
Debug from interactive window in Visual Studio (python)
(Visual Studio Professional 2022, Version 17.4.3)
I'd like to debug a python function called from an interactive window. That is, I'd like to be able to use the interactive window as my main workflow ...
2
votes
1
answer
920
views
No symbols loaded for c++ in mixed debugging (from Python)
I have a large project where the major part computation heavy stuff is written in c++ and the "glue code" and the start script is written in Python. The code has been compiled with the VS ...
5
votes
0
answers
1k
views
How to show full stack trace upon error with python debugger in vs code
If I encounter an error while using the python debugger, the error shows up in a red box below the errored line:
However, I noticed this doesn't show the full stack trace that I'd see if I just run ...
1
vote
1
answer
708
views
Debugging Python inside Docker with Visual Studio 2022
VS Code can apparently debug Python code running on Docker.
Visual Studio 2022 can debug .NET code running on Docker ( https://learn.microsoft.com/en-us/visualstudio/containers/edit-and-refresh?view=...
2
votes
0
answers
50
views
Debug python side attaching to a c++ local process that call python scripts
is there a good way to debug python side attaching to a native process that call python scripts?
I tried using Visual Studio but it didn't work, I saw under attach process window that it is a X64/...
2
votes
1
answer
466
views
Visual Studio Python Tests, Debugger not hitting breakpoints
Problem:
When trying to Run Debug on a Test, breakpoints are not hit. The breakpoint symbol displays a message that the
breakpoint cannot be hit because symbols where not loaded for that
file (...
1
vote
0
answers
611
views
How to debug C++ for pybind11 in visual studio
I am having a problem to debug the C++ side library code driven by a python application via pybind11. I let the python side sleep for a while before calling the C++ library, then attach the C++ ...
0
votes
1
answer
241
views
Failed to launch the debugger Python
I've installed the Python plugin in Visual Studio 2019 (Python 3.7), but when I launch the debugger, I get the error in the picture below:
What is the problem, and how do I solve it?
Thank you.
1
vote
0
answers
70
views
Vs code break point does not not stop at Python-Django API TestCase
Normally, debugging is just working fine with Container. I am spinning up my container at port 8000 and attaching the debugging port which is 3000 to it. But, when I hit my rest_api, although it stops ...