List Info

Thread: Debug C++ dlls from python




Debug C++ dlls from python
country flaguser name
United States
2008-04-24 21:53:56
Hi,
     
        I am new to python and am using easy eclipse for python.  I want to know is there any way of debuging C++ dlls which are called by python asuming the dlls are compiled in debug mode and i have the source code of the dlls. ; i want to be able to single step in the dll code while debuging and also be able to set breakpoints.   
 
suppose that the dll i want to use is my_dll.dll and the function i want to call is myFunc
 
in python i do
myDll = ctypes.cdll.my_dll
 
now i can call the functions of myDll by using
myDll.myFunc( )
 ;
i want to be able to debug and single step through the myFunc code when the python calls this function.
 ;
Thankyou.
 
Regards,
Meherzad  


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Re: Debug C++ dlls from python
country flaguser name
United States
2008-04-25 01:21:42
Meherzad wrote:
> Hi,
>      
>         I am new to python and am using easy eclipse
for python.  I want 
> to know is there any way of debuging C++ dlls which are
called by python 
> asuming the dlls are compiled in debug mode and i have
the source code 
> of the dlls.  i want to be able to single step in the
dll code while 
> debuging and also be able to set breakpoints.   

That's definitely possible.
With gdb, you just set 'target exec python', then invoke the
python 
script that runs your extension module.

I have no idea how to do it with other debuggers.

Regards,
		Stefan

-- 

       ...ich hab' noch einen Koffer in Berlin...
_______________________________________________
C++-sig mailing list
C++-sigpython.org
http:
//mail.python.org/mailman/listinfo/c++-sig

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )