[Python-Dev] Re: Debug C++

2020-04-02 Thread Antonio Cavallo
You can also attach gdb to a running (python) process .. but the interpreter needs to have the symbol table (eg. not stripped). I gave a presentation few years back on this exact topic (sorry for the quality, I was very in-experienced). https://skillsmatter.com/skillscasts/4313-intro-to-python-d

[Python-Dev] Re: Debug C++

2020-03-31 Thread Fabio Zadrozny
If you're on Windows, another option would be doing a remote attach from Visual Studio C++ -- so, you can start the program under debugging in Python and then do an attach to process from Visual Studio C++. On Mon, Mar 30, 2020 at 9:07 PM Rhodri James wrote: > On 30/03/2020 23:20, Leandro Müll

[Python-Dev] Re: Debug C++

2020-03-30 Thread Rhodri James
On 30/03/2020 23:20, Leandro Müller wrote: Hi Are there any away to debug C module during python debug? In a word, gdb. I've been doing this quite a lot lately. The trick is to start Python up under gdb, set a pending breakpoint in your C module, then carry on as normal. For example: rh