Remote C++ debugging through python script
已回答
Hello! :)
I have a problem with remote debug configuration, would you happen to be able to help me?
I have a C++ library, that has a Python API. What I want to do is to trigger remote debugging of this C++ lib from the python script. From the command line I'm doing it like:
ssh my_server
gdb --args python my_script.py
while the C++ library is installed via the wheel. How can I do it using CLion?
请先登录再写评论。
Hello!
CLion supports Python via the Python Community Edition bundled plugin. The feature set corresponds to the PyCharm IDE Community Edition.
Python remote debugging is a feature of PyCharm Professional and therefore is not supported in CLion.
Provided, that I have both CLion and PyCharm Professional, would it be possible?
Ping! Anna Falevskaya
I think you should be able to launch a remote debug session for your python script in PyCharm Professional, but you won't be able to debug C++ code in it.
Feel free to comment or upvote https://youtrack.jetbrains.com/issue/CPP-5681, https://youtrack.jetbrains.com/issue/CPP-5797. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
Also attaching to process on remote host is not yet supported in CLion - https://youtrack.jetbrains.com/issue/CPP-14316.