Problem attaching debugger to running C++ app with embedded python


I'm trying to attach debugger to running C++ application which embeds the python, but it fails with "Connection to Python debugger failed: Accept timed out". Does anyone know what could be wrong?  Is this even supported?

I'm on Windows 7. The application is build using VS 2017.



Comment actions Permalink

No, I mean application does embed classic CPython. That is, you can use python scripts which are interpreted in application. Nothing fancy. And I want to debug the interpreted python code only.

None of the links provided are related to my problem.

Comment actions Permalink

Here is some "debug" log from script using to attach to process:

Attaching to a process with PID=10264
C:\Python36-32\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2019.2.2\helpers\pydev\pydevd_attach_to_process\" --port 64659 --pid 10264
Connecting to 32 bits target
Injecting dll
Dll injected
Allocating code in target process
Writing code in target process
Allocating return value memory in target process
Injecting code to target process
Waiting for code to complete

Process finished with exit code 0
Server stopped.
Comment actions Permalink

Anyone, please?


Please sign in to leave a comment.