multithreading - Visual Studio: How to breakpoint at a yet-unknown location? -
multithreading - Visual Studio: How to breakpoint at a yet-unknown location? -
i'm working on rather complex, multithreaded app not owned 1 person. out of many messageboxes correct, there's @ to the lowest degree 1 needs different message. can through ui, have no thought in code. if pause debugger @ point, goes application.run(...) method phone call , phone call stack empty.
how can tell messagebox is?
can have break close messagebox , take me code did it?
or perhaps pause threads , allow me see 1 close messagebox.show(...) looks right?
i'm using vs2008.
this code has lot of messageboxes varying patterns. utilize messagebox.show(...) while others utilize owner.invoke(new messageboxshowdelegate(messagebox.show),...). few include message directly; either passthrough exception message or strings database.
i'm 1 in long string of people have modified code without much internal documentation, there's no overall construction can see.
run programme in visual studio debugger.
when message box appears, pause debugger.
check threads, , thread showing messagebox should halted somewhere in callstack @ line message box called.
this true both wpf , winforms far can tell. if aren't seeing in phone call stack, either on wrong thread, or have other problems message box caller beingness in library can't debug.
multithreading debugging visual-studio
Comments
Post a Comment