Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2012: Debugger: "Break all in 5 seconds"

My program is using too much CPU power when I select text. And I don't know why. Normally I'd just press "Break all" to see what the program is currently doing. But in this case I'm busy selecting text with the mouse.

Is there any trick to delay the "Break all" command for a few seconds?

like image 570
user178379 Avatar asked Oct 22 '13 10:10

user178379


1 Answers

you can start a separate thread with Sleep(5000); DebugBreak();

like image 88
Andriy Tylychko Avatar answered Sep 26 '22 15:09

Andriy Tylychko