
Hi there-- I've used Python a lot but am new to pythondotnet. I got it running on Windows 7 with no problem, by unzipping the download file, making sure PYTHONPATH and PYTHONHOME were setup properly, and running npython.exe. How do you get it to run in a debugger? (either PyDev on Eclipse, or Microsoft PTVS) Also, is there a way to install it "permanently" in an existing Python installation so that it will pickup the pythondotnet bridge when you run the regular "python.exe"? --Jason

I would love to hear some good answers to this. I've been able to use PTVS/Visual Studio to debug either python or .NET, but trying to cross the bridge between the two leaves you debugging pythondotnet, and not the .NET project you actually want to debug. From: PythonDotNet [mailto:pythondotnet-bounces+btribble=ea.com@python.org] On Behalf Of Jason Sachs Sent: Monday, July 22, 2013 11:56 AM To: pythondotnet@python.org Subject: [Python.NET] debugging Hi there-- I've used Python a lot but am new to pythondotnet. I got it running on Windows 7 with no problem, by unzipping the download file, making sure PYTHONPATH and PYTHONHOME were setup properly, and running npython.exe. How do you get it to run in a debugger? (either PyDev on Eclipse, or Microsoft PTVS) Also, is there a way to install it "permanently" in an existing Python installation so that it will pickup the pythondotnet bridge when you run the regular "python.exe"? --Jason

hi folks, you should be able to do this. you'll need to step thru your Python.NET code until it actually calls into .NET, but from there it should be handled as any other cross-runtime call: http://i.imgur.com/IDPsWUu.png docs: https://pytools.codeplex.com/wikipage?title=Mixed-mode%20debugging video (for cpp tho): http://www.youtube.com/watch?v=wvJaKQ94lBY pls feel free to post any q's to ptvs forum on codeplex. thanks! ________________________________ From: PythonDotNet <pythondotnet-bounces+smortaz=microsoft.com@python.org> on behalf of Tribble, Brett <btribble@ea.com> Sent: Monday, July 22, 2013 12:32 PM To: Jason Sachs; pythondotnet@python.org Subject: Re: [Python.NET] debugging I would love to hear some good answers to this. I've been able to use PTVS/Visual Studio to debug either python or .NET, but trying to cross the bridge between the two leaves you debugging pythondotnet, and not the .NET project you actually want to debug. From: PythonDotNet [mailto:pythondotnet-bounces+btribble=ea.com@python.org] On Behalf Of Jason Sachs Sent: Monday, July 22, 2013 11:56 AM To: pythondotnet@python.org Subject: [Python.NET] debugging Hi there-- I've used Python a lot but am new to pythondotnet. I got it running on Windows 7 with no problem, by unzipping the download file, making sure PYTHONPATH and PYTHONHOME were setup properly, and running npython.exe. How do you get it to run in a debugger? (either PyDev on Eclipse, or Microsoft PTVS) Also, is there a way to install it "permanently" in an existing Python installation so that it will pickup the pythondotnet bridge when you run the regular "python.exe"? --Jason

To make PythonNet install formally inside an existing CPython, you are looking to build/acquire it as a module and install that module in your PYTHONPATH or in your site-packages for that CPython. There are a number of ways to do this. depending on what you are downloading or building and where you are deploying. You will likely need to better define your ultimate deployment requirements/needs to figure out how you'd want to approach that issue. -brad On Jul 22, 2013, at 2:55 PM, Jason Sachs <jmsachs@gmail.com> wrote:
Hi there--
I've used Python a lot but am new to pythondotnet. I got it running on Windows 7 with no problem, by unzipping the download file, making sure PYTHONPATH and PYTHONHOME were setup properly, and running npython.exe.
How do you get it to run in a debugger? (either PyDev on Eclipse, or Microsoft PTVS)
Also, is there a way to install it "permanently" in an existing Python installation so that it will pickup the pythondotnet bridge when you run the regular "python.exe"?
--Jason _________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet
participants (4)
-
Bradley Friedman
-
Jason Sachs
-
Shahrokh Mortazavi
-
Tribble, Brett