Condition breakpoint "strcmp(c-string, "char7")==0" is invalid in debug using VSCode C++ gdb debuger #8509
2994186010
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My example code(testStr.cpp) is as following.
The executed commands is as following.
It is clear that the above gdb debug process is in the linux shell.
The running program suspend when str1 is char4. The detail is as the following picture.
I set one same condition breakpoint "strcmp(str1, "char4")==0" in the 16th in testStr.cpp in VSCode IDE. The execution result of the program in VSCode is different from the above gdb debug result. The same breakpoint in VSCode seems to be invalid. The program doesn't suspend when str1 is char4 and finishes all the code lines. The detail is as following.
Beta Was this translation helpful? Give feedback.
All reactions