[Python.NET] debugging

Tribble, Brett btribble at ea.com
Mon Jul 22 23:18:11 CEST 2013


Yeah, I need to upgrade to the 2.0 beta. It's nice to see that pythondotnet has PTVS devs watching it. PTVS is one of the cooler things to come out of Microsoft!

From: Bradley Friedman [mailto:brad at fie.us]
Sent: Monday, July 22, 2013 2:10 PM
To: Tribble, Brett
Cc: Jason Sachs; pythondotnet at python.org
Subject: Re: [Python.NET] debugging

it looks like there's something similar to the WingIDE solution, for PTVS

http://pytools.codeplex.com/wikipage?title=Remote%20Debugging%20for%20Windows%2c%20Linux%20and%20OS%20X

-brad

On Jul 22, 2013, at 5:05 PM, Bradley Friedman <brad at fie.us<mailto:brad at fie.us>> wrote:


Yea I usually do that until I give up and go through the trouble of setting up a complex debugging environment.  Usually it's caused by trying to debug Python code inside of Maya.  And I end up wrapping entry points in calls to the debugger.  Since I'm usually using WingIDE for that, it's usually done this way:

http://wingware.com/doc/debug/importing-the-debugger

Likewise, when I'm stuck on a Python <--> .NET debugging problem, I usually do the same if my main entry point was a .NET one.

If it's the other way around, I'm usually attaching mono-develop manually or VS manually.  But the key in that case is to have breakpoints set.  I've not really found a great way to launch .NET remote debugging from within a .NET runtime.  But I do think the best solution will none-the-less, be a remote debugging styled solution, like it is handled in WingIDE.  Or, how something like Unity3D handles mono debugging as remote debugging.  I have messed around with the Debugging classes inside of .NET a little bit.  And they can be useful for things like making your app pause until a debugger is attached, and such.

On Jul 22, 2013, at 4:48 PM, "Tribble, Brett" <btribble at ea.com<mailto:btribble at ea.com>> wrote:


I'm guessing that yes, it is Reflection. I'm sure I could cobble together something that works, but I haven't wanted to spend the time to play with it that much. I'm pretty used to debugging by instrumenting code with a ton of logging and "print statements" regardless.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20130722/bad49376/attachment-0001.html>


More information about the PythonDotNet mailing list