Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4268986
By: fabioz

Pydev extensions has a remote debugger to debug externally launched code:
http://www.fabioz.com/pydev/manual_adv_remote_debugger.html, but that's not
the same as debugging c++... actually, debugging c++ has nothing special when
you're running it from python (so, you basically debug it as you would debug
a regular c++ program).

As I'm on windows, I usually use msvc (and it's basically the same as in gdb).
What I usually do is: compile the code in debug, run it, adding a 
raw_input('Waiting
for attach') just before the place I want to debug, run it and wait for it to
get there, then attach msvc to the python.exe, add the needed breakpoints, and
keep the execution going so that the breakpoint is reached....

You may have to follow some steps to compile things in debugging, and use
python_d.exe and compile your module with module_d.pyd too (or not, depending
on the dependencies you have, but that's usually good practice as you can have
debug symbols for everything, so, you could even step into the python 
interpreter
code -- probably asking at the python list they can give you better indications
on how to do that).

Cheers,

Fabio

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to