简体   繁体   中英

How can I debug C++ code called from Python on a remote machines using PyCharm?

How can I debug C++ code called from Python on a remote machines?

I'm using PyCharm, but its debugger doesn't seem to allow you to debug mixed code. What alternatives do I have? I know about gdb but I need some usage details.

Pycharm ia a python IDE, it cannot be used to debug c++ directly. If you can use other ides, such as VSCode, the link below may help you. https://nadiah.org/2020/03/01/example-debug-mixed-python-c-in-visual-studio-code/ .

If using gdb, you can use command:

gdb --args python your_python_script.py

then you can debug as a standalone cpp executable, such as set breakpoints, run, step and so on.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM