vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Support per-thread breakpoints

Open Gruntfuggly opened this issue 2 years ago • 2 comments

Feature Request

According to gdb, I should be able to set a breakpoint on a specific thread, using something like

break <file.cpp>: thread

If I use the console I get

-var-create: unable to create variable object

I've tried using the expression breakpoint through the GUI but that does not work either.

Gruntfuggly avatar Sep 14 '22 14:09 Gruntfuggly

If you want to use console gdb commands in the debug console, you will need to prefix it with -exec or the '`' character.

WardenGnaw avatar Sep 15 '22 17:09 WardenGnaw

We will look into adding a way for conditionally breaking on a specific thread.

Thank you for creating this request.

WardenGnaw avatar Sep 15 '22 17:09 WardenGnaw

This would make my life so much better! Thank you!

Gruntfuggly avatar Sep 28 '22 19:09 Gruntfuggly

@WardenGnaw This method works for now. I can't stand fighting with vim and gdb in linux. I hope I could use better multithread debugger in the future.thank you!!!

zyjdmmm avatar Dec 18 '22 17:12 zyjdmmm