[Python.NET] Debugging CPYTHON embedded in .NET

Tony Roberts tony at pyxll.com
Fri Jul 10 10:23:31 CEST 2015

Hi Denis,

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.

See the instructions here:

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 (https://youtrack.jetbrains.com/issue/PY-14181),
but for now using the debug server is your best option.

Best regards,

On Thu, Jul 9, 2015 at 4:51 PM Denis Akhiyarov <denis.akhiyarov at gmail.com>

> Dear users and developers of PythonNET:
> How do you debug CPython embedded in . NET?
> Did you find any reliable way to do this with IDE such as PTVS or Pycharm?
> PTVS offers mixed-mode and remote debugging, none of which seem to be
> usable with PythonNET.
> Thanks,
> Denis
> _________________________________________________
> Python.NET mailing list - PythonDotNet at python.org
> https://mail.python.org/mailman/listinfo/pythondotnet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20150710/5600e827/attachment.html>

More information about the PythonDotNet mailing list