I have a multi-threaded .Net app in which thread-local storage is used to hold a flag of sorts. I have reason to suspect that the flag is being set incorrectly in one of the threads and would like to use the VS debugger to inspect when and where the flag is being set.
Once I have stopped the application at a break point, can I use the immediate window to inspect that thread-local flag?
More specifically, on what thread would the immediate window execute the following command
Thread.GetData(Thread.GetNamedDataSlot(flagName))
Alternatively, can you suggest ways to monitor these flags per thread?