Closed pascalzeugin closed 1 year ago
Hi @pascalzeugin. I found a workaround for this issue refer to this link.
Maybe this issue is caused by Python C++ Debugger attached to incorrect Pid of python app.
Hi @pascalzeugin. I found a workaround for this issue refer to this link.
Maybe this issue is caused by Python C++ Debugger attached to incorrect Pid of python app.
Hi @yangwang201911 and thank you for your response. I've have already ruled out this issue, see my post on stackoverflow
Could it be related to this? https://github.com/MicrosoftDocs/visualstudio-docs/issues/8621 "There's a known general issue with mixed-mode debugging and venvs due to the fact that Python for Windows uses a stub python.exe for venvs "
Hi @axelande and thanks for your response. I think these issues are not related as I neither use a virtual environment nor do I use the debugger from visual studio.
Closing this issue as it's not an issue with the extension. I recommend trying to run your code on WSL. Compiling and linking the code correctly can be hard and frustrating on Windows.
I am currently trying to get the minimal working example running under Windows 10 with the MSYS2 gdb.exe. Here's my C++ source code;
I'm compiling the code with the mingw64 g++ compiler:
The buildtype is "debug" as indicated by the "-g" flag.
The python file I'm trying to debug is shown subsequently:
My launch.json:
Both the Python and the C++ debugging process start correctly, however if I hit continue when arriving at the Python breakpoint it just jumps over the C++ part giving the correct result of 5+1 = 6 at the end.
It seems the the debugger does not find the sourcecode of the DLL? The files all lie in the same directory:
test.py
session_pybind.cpp
libpxfdc8.dll
Any ideas what I'm missing here?