Discussion:
[Python.NET] Problem debugging to python.runtime.dll
V***@public.gmane.org
2010-02-18 19:55:55 UTC
Permalink
Hi,



We are actually using Python.Net with python 2.5 and I wanted to learn
the internal architecture of the Python.Runtime.Dll. I have tried
debugging the dll by attaching the process to python.exe but doesn't hit
any break point. I don't know much about the compiler design and how it
works internal but all I want is I should be able to debug how my C#
instruction is getting executed using python.runtime.dll



It would be really helpful if I get steps to debug it or get some sort
of direction or architecture design diagram.



Thanks and Regards,



Vishal
Dave Hirschfeld
2010-02-18 20:40:56 UTC
Permalink
Post by V***@public.gmane.org
We are actually using Python.Net with python 2.5 and I wanted to learn
the internal architecture of the Python.Runtime.Dll. I have tried
debugging the dll by attaching the process to python.exe but doesn't hit
any break point. I don't know much about the compiler design and how it
works internal but all I want is I should be able to debug how my C#
instruction is getting executed using python.runtime.dll
In the Debug Tab of the Properties dialog for your C# project choose "Start
external program" for the Start Action and select the normal CPython
executable - python.exe. In the "Command line arguments" put the full path
of the python script which calls the C# function you want to debug. If you
debug the project now it should run the python script and you should drop in
to the c# debugger at the breakpoint you set in the function called by the
Python script.

HTH,
Dave
--
View this message in context: http://old.nabble.com/Problem-debugging-to-python.runtime.dll-tp27644956p27645311.html
Sent from the Python - pythondotnet mailing list archive at Nabble.com.

_________________________________________________
Python.NET mailing list - PythonDotNet-+ZN9ApsXKcEdnm+***@public.gmane.org
http://mail.python.org/mailman/listinfo/pythondotnet
Loading...