Questions tagged [debugpy]
15 questions
4
votes
1 answer
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 connection and shut down the debug server from within…

SandPiper
- 2,816
- 5
- 30
- 52
1
vote
0 answers
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 "no suitable test method found"
How can i solve it.
2 .
When i…

RayaneQH
- 9
- 1
1
vote
0 answers
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 line:
python3 -m debugpy --listen 0.0.0.2:2345…

Anonymous Bot
- 11
- 1
1
vote
1 answer
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 pipelines it executes fine but when the project is…

Enok82
- 163
- 1
- 13
0
votes
0 answers
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-bullseye
ARG ENVIRONMENT=master
# Python logs to…

NICOLÁS ANTONIO PINO LEVA
- 25
- 1
- 4
0
votes
0 answers
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 to attach to from vscode)
version: '3'
services:
…

Ryan
- 449
- 5
- 21
0
votes
1 answer
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
test-debugpy-issue.pyproj
…

user32882
- 5,094
- 5
- 43
- 82
0
votes
0 answers
How to make the VSCODE debugger AUTOMATICALLY attach to odoo-python docker container
Is there a way to automatically connect VS Code debugger to an already running docker container on a specific port say 8888 for debugging purposes ?
I have installed debugpy inside the docker container for debugging,
but I don't want to click the…

Raj Singh
- 1
- 1
0
votes
0 answers
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": [
{
"name": "Python: Current File",
…

Alexander Zagajewski
- 23
- 4
0
votes
1 answer
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 view descriptions of existing attributes.
//…

AlxVallejo
- 3,066
- 6
- 50
- 74
0
votes
0 answers
Error attaching Python debugger with debugpy: 'Could not find .so for attach to process'
I'm trying to attach a Python debugger to a process using the debugpy module, but I'm getting the following error:
Unable to attach to process in arch: aarch64 (did not find attach_aarch64.so in…

Nitesh
- 60
- 7
0
votes
0 answers
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 in a try / except Exception clause, as I don't…

LoneCodeRanger
- 413
- 6
- 18
0
votes
0 answers
debugpy warning when running a flask app alongside a selenium webdriver instance
I get the following warning when running a flask app alongside selenium:
UserWarning: incompatible copy of pydevd already imported
C:\Users\Admin\AppData\Roaming\Python\Python39\site-packages\debugpy\_vendored\force_pydevd.py:18: UserWarning:…

zach--
- 15
- 1
- 3
0
votes
1 answer
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 "regular" python files, i.e. no jupyter cells,…

evod
- 119
- 4
-1
votes
0 answers
Debugpy and RabbitMQ -- VSCode
I am using debugpy for debugging my Python code. However, I have run into an issue where the debugger is not hitting the breakpoints inside code that is triggered via MQ messages.
I can successfully start and run the debugger and hit breakpoints in…

Klutch27
- 167
- 2
- 9