Open rkubik opened 5 years ago
Hi, I met the same problem. The root cause is
break-insert -f -c "$_streq(some_string,"/tmp/foobar")"
VSCode did not handle ", the work around is to simply add \ before ". Anyway, just insert a conditional breakpoint as following:
$_streq(some_string,\"foobar\")
Type: Debugger
Problem: Unable to set conditional breakpoints (expressions) that contain double-quotes. I can side step the issue by escaping all of the double-quotes in the expression but that is not intuitive for those who use the UI for debugging and are unfamiliar with GDB/MI. I'd argue that vscode should escape all user-provided expressions (conditional breakpoints, watches, etc.) that are provided to GDB/MI.
RHEL 7
1.39.2
0.26.1
None
To Reproduce
F5
). Break point turns gray and hovering over the breakpoint displays: