Debug mode: execute command when breakpoint is hit
已回答
Hi altogether,
is there a possibility to execute a command (e.g. a bash script) before/when a breakpoint is hit in Debug Mode?
I am working on Ubuntu 16.04 with CLion 2018.3.4
Best regards,
Chris
请先登录再写评论。
Hi! You can set breakpoint's properties so that an expression is evaluated when the breakpoint is hit, and the result is shown in the console output (see https://www.jetbrains.com/help/clion/using-breakpoints.html#breakpoint-properties). As for the script, you can execute it manually in the embedded local terminal or in the debugger console.