[C++-sig] How to debug pyd File in Visual Studio???

Sybren A. Stüvel sybren at stuvel.eu
Fri Jan 25 18:43:40 CET 2013


Hi Salinea,

You can attach the Visual Studio debugger to any running process, including
Python. That way you can debug Python code from your Python IDE, and
connect VS to debug your C++ at the same time.

Best,
Sybren


On 25 January 2013 11:57, salinea <liujz39 at gmail.com> wrote:

> Recently, I build a hybrid system with C++ and python.
>     First,I encapsulate a class(I can't guarantee the robustness of this
> class ) with boost.python which can implement some functions that can not
> be
> implemented by C++, I get a .pyd File in result.
>     Second,I embed a python interpreter in c++.
>     Third, use the embed interpreter to execute a .py File.The .py File
> include the module that in .pyd File I created.
>     Here, the problem comes out! When I start my main project. I can only
> debug the problems in my main project, when my main project use the python
> interpreter to execute the python interpreter, I can't see what happened in
> my pyd File, the whole project collapsed.I know the error is in the pyd
> File, and if I set a break point in my resource files of pyd File, either
> the project will go to the break point.
>    Is there any methods to debug the resource file in this condition!
>
>
>
> --
> View this message in context:
> http://boost.2283326.n4.nabble.com/How-to-debug-pyd-File-in-Visual-Studio-tp4641746.html
> Sent from the Python - c++-sig mailing list archive at Nabble.com.
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>



-- 
Sybren A. Stüvel

http://stuvel.eu/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20130125/8ba79efb/attachment.html>


More information about the Cplusplus-sig mailing list