Search code examples
windowsvisual-studio-2010debuggingvisual-studio-debugginginternals

Examine TEB/TIB data when debugging with VS2010


I've unsuccessfully tried to find a method to examine the Thread Environment Block (AKA Thread Information Block) when debugging native code with the Visual Studio 2010.

I know that FS:[0] should point at it, but the value in FS seems ambiguous.


Solution

  • Just use the pseudo variable, @tib. You can put it in a watch expression or, more likely to be useful, put it in the Address box of a Debug + Windows + Memory window.

    Also notable is the Windbg !teb command. If gives you a formatted view of the TEB content.