36 questions
1
vote
0
answers
64
views
Disable attribute evaluation in debugpy / pydevd in Visual Studio Code
I have an object which has multiple properties that when accesses query a SQL database. When I debug a region where such an object is present, e.g. in VSC with debugpy, all these attributes are ...
1
vote
0
answers
92
views
Parent process unexpectedly exits during debugging when child receives SIGTERM (works fine outside debugger)
I'm experiencing an issue where the parent Python process terminates unexpectedly when debugging, but only when a child process is sent SIGTERM. The same code works perfectly when run normally (...
3
votes
1
answer
270
views
How can I remote-debug a Python app running in Docker from PyCharm Professional?
I’m trying to remote-debug a Python service that runs inside a Docker container using PyCharm 2025.2.3 on macOS.
I do have an active license, but the IDE no longer shows any obvious way to attach to a ...
1
vote
0
answers
100
views
VSCode debugpy launcher command not executing automatically in terminal after shell initialization commands
Problem
When launching a Python debug session in VSCode using debugpy, I see three commands spawned in the integrated terminal:
devbox shell - executes automatically ✓
source /path/to/project/.venv/...
0
votes
0
answers
220
views
Debugging vLLM with debugpy on WSL fails: AttributeError: module 'ray' has no attribute 'is_initialized'
I’m trying to debug my Python code with debugpy in VS Code on WSL (Ubuntu).
Environment:
Python: 3.12.3 (venv)
vLLM: 0.10.1.1+cpu
debugpy: ms-python.debugpy-2025.10.0 (from VS Code extension)
...
0
votes
1
answer
832
views
Straggling to setup nvim-dap-python
I've tried many tutorial videos to setup nvim-dap but everyone set it up using a different method which doesn't work for me.
I am new to neovim. I setup most of the stuff like lsp and so but can't ...
3
votes
1
answer
196
views
PowerShell Subprocess Launched via debugpy Doesn’t Inherit Environment Variables (but cmd.exe does)
Problem
I'm encountering an issue where launching PowerShell via Python’s subprocess.Popen() works as expected during normal execution, but in debug mode (using debugpy/cursor) key environment ...
0
votes
1
answer
614
views
vscode python debugger hangs for ever
Recently my VSCode is out of work. When I choose Python Debugger: Debug Python File from the upper-right drop-down menu, the TERMINAL panel will show the command line of starting Python debugger like:
...
0
votes
2
answers
950
views
Debugpy Connection Refused Debug in VsCode
Good morning. Since yesterday I can't seem to connect to my debugger using debugpy. I'm getting a ECONNREFUSED error, I haven't really changed anything and can't seem to connect to my debugger. ...
2
votes
0
answers
291
views
Attach PyCharm Community to debugpy inside container
I am running a debugpy listener inside a Docker container. I am using docker compose to run the containers. This is my config
import debugpy
debugpy.listen(("0.0.0.0", 5680))
_logger.info(&...
1
vote
0
answers
182
views
How to integrate VSCode debugger for Python Bazel projects without altering source code?
I have a monorepo project built with Bazel and I'm trying to integrate VSCode debuggers directly with Python targets I'm running.
There is a similar question that helps solve the problem here: How to ...
0
votes
2
answers
623
views
Timeout in VSCode Debugger with debugpy after update, tests run manually but breakpoints don't work
I’m running into an issue when trying to debug my Python tests in VSCode after updating to the latest version (1.93.0). Until a couple of days ago, everything was working fine, but now I keep getting ...
2
votes
0
answers
200
views
Blender Addon - starting blender 4.2 through VS code stopped working
I am developing a blender addon and decided to use VS Code with the blender development and python extensions. While working with blender 4.1 I encountered no issues, but since the update(4.2) when I ...
-1
votes
1
answer
426
views
Use VS Code breakpoints with pantsbuild tests
I have the following setup: Python project + pantsbuild + vscode.
I would like to add VS Code breakpoints in my unit tests (unittest) while using the pants test command. I can already set breakpoints ...
0
votes
1
answer
768
views
VSCode Django Debugging: Breakpoints not working with 'debugpy', but work with 'python' type
When trying to debug a Django management command in VSCode, I encountered an issue where breakpoints were not being hit when using the 'debugpy' configuration type. However, when I switched to the '...
0
votes
3
answers
422
views
How to debug Chalice route handlers in VSCode
Using the following launch.json, I'm able to hit breakpoints in the module level code, but not in route-handlers.
launch configuration (the last three lines may not be needed, but are just some things ...
0
votes
1
answer
127
views
Debug Flask Visual Studio Code, module started twice
I am trying to debug a small python server using Flask. I have tried many different permutations of launch.json. What happens is that the main module is started and then in a subprocess running ms-...
2
votes
0
answers
105
views
How to configure debugpy for editable install?
I am trying to develop a package that I have installed with pip install -e . .
The project structure is the following:
mypackage
├── build
│ └── mypackage-0.8.83.dist-info
│ └── licenses
├── ...
3
votes
1
answer
312
views
Launching Python Debug with Arguments messes with file path
I'm using VSCode on Windows, with the GitBash as integrated terminal. When I launch the Python Debugger with default configurations, it works fine, and I get this command executed on the terminal:
/...
0
votes
1
answer
426
views
vs code multiple open projects: pydev debugger: unable to find translation
I setup a while ago debugging for a small python program, which I developed using docker.
So I used Python: Remote Attach, as shown in the official documentation. This worked for me.
Later I started ...
3
votes
2
answers
3k
views
AttributeError: module 'thread' has no attribute 'start_new_thread'
I am trying to get data from an endpoint on a website using Python, here is my code:
from aiohttp import ClientSession as session
async def get_api_data(api_url):
try:
async with session....
-1
votes
1
answer
684
views
Getting a debug console when running `debugpy` on the command line
I'm trying to use my external terminal on my local computer to as the console in a debugging session for Python running on a remote machine. I've successfully attached to a debugpy invocation I ran ...
1
vote
1
answer
620
views
VS Code numpy array endlessly expanding in debugger variables section
Given a simple python program like
import numpy as np
my_list = [1,2,3,4,5]
my_array = np.array(my_list)
I can now use break points and the debugger to watch the variables
I can also expand them
...
0
votes
0
answers
68
views
Can I send locally stored python code to be run/debugged in a remote machine?
I would like to ask if it exists any possibility to send locally stored Python code (being edited, for instance, in Visual Studio Code) to be run or debugged in a remote computer, without the ...
0
votes
2
answers
872
views
How to set a different terminal profile for debugpy in VSCode for macOS?
I've seen this post, but I don't know how this could help me. What I want to do is to start the debugger within a Rosetta terminal. What I currently do, is start the script in debug mode till it fails ...
3
votes
2
answers
3k
views
pydev debugger: unable to find translation for: (please revise your path mappings)
I have a problem using debugpy with vscode on Windows with the repository on a local server. I have a dockerized django app with the following dockerfile and docker-compose:
FROM python:3.6.15-slim-...
3
votes
1
answer
289
views
Debugpy don't work "no suitable test method found"
I have installed neovim as my IDE and i configured it with this video "the perfect neovim setup with python" from 'Dreams of code" but the when i enter 'space+dpr' i have the messege &...
2
votes
0
answers
364
views
VSCode debugpy with dockerized django app
I'm trying to use debugpy with a dockerized django app - it connects momentarily then disconnects - I'm not sure why
docker-compose.backend.yml: (the uplifty service below is the django server I want ...
0
votes
1
answer
1k
views
Subprocess with visual studio debugger attached to process causes a problem in python project
I'm facing a very annoying issue with Visual Studio 2022. Here's how to replicate it.
Folder contents:
test-debugpy-issue
| test-debugpy-issue.sln
|
\---test-debugpy-issue
cli.py
...
2
votes
0
answers
1k
views
VS Code debugpy hiding special and function variables via variablePresentation in launch.json does not work
Other threads have suggested editing the launch.json debugpy configuration to edit the way cluttering variables are presented by adding variablePresentation:
{
"configurations": [
...
0
votes
1
answer
1k
views
Debugpy won't attach to anything
I've tried everything except what works. Nothing gets my vscode debugger to attach to any breakpoint.
Here is my launch.json:
{
// Use IntelliSense to learn about possible attributes.
// Hover to ...
1
vote
0
answers
379
views
How to pause execution and wait-for-client to attach with debugpy only on hitting an exception, not before that?
debugpy usually pauses the execution from the begining and waits for client to attach. I want it to do that only and if it hits an exception, otherwise continue the execution.
I'm trying from command ...
0
votes
0
answers
50
views
Can exceptions still interrupt the execution when they are wrapped in an appropriate try/except block?
I have some debugging code (involving debugpy.connect()) in a custom package, which is expected to raise an exception if the debug server isn't currently launched. The thing is, that code is wrapped ...
0
votes
1
answer
503
views
Debugging Jupyter cells fails with "Pip module Unable to parse debugpy output"
I am trying to debug Jupyter notebooks (and also cells in .py files demarked with #%%) but it does not work.
After a while the IDE pop up a note Pip module Unable to parse debugpy output,..
Debugging &...
1
vote
1
answer
2k
views
Using VSCode to remotely debug Python code in local Docker container
Background: We have Sphinx, a Python application for generating documentation, running inside a Docker Container. I'm running into an issue with converting drawio files. When executed in our GitLab ...
4
votes
1
answer
2k
views
How do I stop the Debugpy server and detach the debugger?
I am using Debugpy to run a debug server from the Blender Python scripting environment, and I have successfully attached and debugged with VS Code. However, I cannot figure out a way to break the ...