'Clion Breakpoint Conditions with string (strcmp) as breakpoint condition

I have this breakpoint condition:

strcmp(word, "circle") == 0

But it doesn't seem to work. How do we use conditional breakpoints with strings in Clion and how do I get this condition to work as intended. I can't show my code as it's for a university assignment.

Edit: My program reads input from a collection of files and creates an inverted index based on occurrences of the word in the file. So obviously I don't want to resume program 100 times to get to the word 100th word (100th iteration of my while loop).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source