<div dir="ltr">Hi Denis,<div><br></div><div>you can use the remote debugger in PyCharm to attach to your .NET process. It requires a small bit of python code in your application to make it connect to the PyCharm debug server, but it works very well.</div><div><span style="font-size:13.1999998092651px;line-height:1.5"><br></span></div><div><span style="font-size:13.1999998092651px;line-height:1.5">See the instructions here: </span><span style="font-size:13.1999998092651px;line-height:1.5"><a href="http://blog.jetbrains.com/pycharm/2010/12/python-remote-debug-with-pycharm/">http://blog.jetbrains.com/pycharm/2010/12/python-remote-debug-with-pycharm/</a></span></div><div><span style="font-size:13.1999998092651px;line-height:1.5"><br></span></div><div><span style="font-size:13.1999998092651px;line-height:1.5">I've got an open request to enhance the new 'attach to process' feature that appeared in 4.0 so that it could attach to processes embedding python and not just python.exe (</span><a href="https://youtrack.jetbrains.com/issue/PY-14181">https://youtrack.jetbrains.com/issue/PY-14181</a>)<span style="font-size:13.1999998092651px;line-height:1.5">, but for now using the debug server is your best option.</span></div><div><span style="font-size:13.1999998092651px;line-height:1.5"><br></span></div><div><span style="font-size:13.1999998092651px;line-height:1.5">Best regards,</span></div><div><span style="font-size:13.1999998092651px;line-height:1.5">Tony</span></div><div><span style="font-size:13.1999998092651px;line-height:1.5"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 9, 2015 at 4:51 PM Denis Akhiyarov <<a href="mailto:denis.akhiyarov@gmail.com">denis.akhiyarov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Dear users and developers of PythonNET:</p>
<p dir="ltr">How do you debug CPython embedded in . NET?</p>
<p dir="ltr">Did you find any reliable way to do this with IDE such as PTVS or Pycharm?</p>
<p dir="ltr">PTVS offers mixed-mode and remote debugging, none of which seem to be usable with PythonNET.</p>
<p dir="ltr">Thanks,<br>
Denis</p>
_________________________________________________<br>
Python.NET mailing list - <a href="mailto:PythonDotNet@python.org" target="_blank">PythonDotNet@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/pythondotnet" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/pythondotnet</a></blockquote></div>