Debug mode: execute command when breakpoint is hit
Answered
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
Please sign in to leave a comment.
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.