问题
Is there any way in CLion to debug a C++ program that is run from a Python script with subprocess.Popen
?
I can set breakpoints and debug the Python program, and I can set breakpoints and debug the C++ program if I run it directly, but I can't get my C++ breakpoints to fire when the program is started from Popen.
I tried setting "Python Debugger->Attach to subprocess automatically" while debugging but it didn't seem to have any effect.
来源:https://stackoverflow.com/questions/53674471/clion-debug-c-subprocess-spawned-by-python