Where can I get a complete list of debugger variables?

I'm trying to set a tracepoint to print the hit count in VS, but I cannet find any kind of $ NAME to use in the print message dialog. I tried http://msdn.microsoft.com/en-us/library/vstudio/232dxah7(v=vs.100).aspx , but I cannot find a link that describes every possible value I can output. I used to use a VB macro that I wrote for this purpose, but unfortunately it is too slow and can lead to very high latencies which are unacceptable for my environment. Maybe someone can point me to some article where I can select enough information?

+3


source to share


2 answers


MSDN State: You can include programmatic information in a message using the DebuggerDisplayAttribute syntax (see DebuggerDisplayAttribute). Here are some examples

http://msdn.microsoft.com/en-us/library/5557y8b4.aspx http://msdn.microsoft.com/en-us/library/system.diagnostics.debuggerdisplayattribute.aspx



Look at this Q&A: What expressions are allowed in tracepoints?

0


source


Not exactly what you want, but you can achieve this by declaring a variable in the Immediate window with execution stopped, i.e .:

int hitCount;

      



Then in Breakpoint -> When Hit -> Print a Message enter:

Number of hits: {hitCount}

0


source







All Articles