Re: [Python.NET] Debugging CPYTHON embedded in .NET

Denis Akhiyarov <[email protected]>
Newsgroups gmane.comp.python.dotnet
Message-ID <CALxxJLR3X2dOA3GGrVte2QL6QZe3unERCjTs8Ei_n1E=4irLXA@mail.gmail.com>
Tony,

thank you for suggesting PyCharm. Although I found code refactoring much
nicer in PyCharm than PTVS, the debugger has yet to match PTVS :)

I have multiple open issues for PyCharm/PTVS debuggers:

https://youtrack.jetbrains.com/issue/PY-16844
https://github.com/Microsoft/PTVS/issues/552

Any solution or alternative remote debuggers would be appreciated.

Thanks,
Denis



On Fri, Jul 10, 2015 at 3:23 AM, Tony Roberts <[email protected]> wrote:

> 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:
> http://blog.jetbrains.com/pycharm/2010/12/python-remote-debug-with-pycharm/
>
> 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,
> Tony
>
>
> On Thu, Jul 9, 2015 at 4:51 PM Denis Akhiyarov <[email protected]>
> wrote:
>
>> 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 - [email protected]
>> https://mail.python.org/mailman/listinfo/pythondotnet
>
>
> _________________________________________________
> Python.NET mailing list - [email protected]
> https://mail.python.org/mailman/listinfo/pythondotnet
>

_________________________________________________
Python.NET mailing list - [email protected]
https://mail.python.org/mailman/listinfo/pythondotnet
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.