Tips for Debugging Threads in Native Code

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic does not apply Topic does not apply

Native only

Topic does not apply

Standard

Topic does not apply

Topic does not apply

Native only

Topic does not apply

Pro and Team

Topic does not apply Topic does not apply

Native only

Topic does not apply

Table legend:

Topic applies

Applies

Topic does not apply

Does not apply

Topic applies but command hidden by default

Command or commands hidden by default.

Here are some tips you can use when debugging threads in native code:

  • You can view the contents of the Thread Information Block by typing @TIB in the Watch window or QuickWatch dialog box.

  • You can view the last error code for the current thread by entering @Err in the Watch window or QuickWatch dialog box.

  • C Run-Time Libraries (CRT) functions can be useful for debugging a multithreaded application. For more information, see _malloc_dbg.

See Also

Other Resources

Debugging Multithreaded Applications

Debugging Native Code