Wednesday, February 29, 2012

Visual Studio watch window: select file of non-local static variable

The problem: you want to display a non-local static variable like "state". For example you have this in a file StateMachine12.cpp: static State state; Unfortunately you have a dozen of files defining such a variable. Chances are the watch window doesn't display the one you need. The solution: use a context operator in the watch window: {,StateMachine12.cpp,}state

No comments:

Post a Comment