03-10-2021 07:51 AM
Hello,
how can i use the conditional breakpoints with Strings?
I have tested it with following Example:
const char testStr[]="Hello";
My conditional expression for the breakpoint: strcmp(testStr, "Hello")
CVI disable my breakpoint if i run it.
How can i write my conditional expression for c Strings?
Bests
Brian
03-11-2021 02:54 AM
Hello,
to stop on conditions like a strcmp result you can use Breakpoint() and maybe BeingDebuggedByCVI() because Breakpoint stops ANY debugging tool attached to the process even in Release code.
03-11-2021 03:59 AM
Hi,
You can write strcmp comparison expression into the code and assign its return value into a variable (which shows if they match or not) and write the break condition according to that variable.
Hope this helps