multithreading - Debugging Multithreaded C++ program in Visual Studio 2008 -


i debugging multi-threaded program in visual studio 2008.

  • when break in main thread, status of other threads in process ?
  • they keep executing or break ?
  • what happens them when f10/f11 in main thread ?
  • how should proceed if need check thread has changed particular variable ?

if debugger breaks process (for example via breakpoints or "break all"), threads suspended.

if press f10 or f11, new "temporary" breakpoint added next line , process started (resumed) again. therefore threads runt (for short time), until breakpoint hit.

if need detect how changing variable, can set "data-breakpoint". reference see what data breakpoints? take @ documentation: how to: set data breakpoint

also please aware, can see list of threads opening "threads"-window (debug|windows|threads)!


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -