简体   繁体   中英

Keep Watched Variable Tab Open After Debug

When I'm debugging in Visual Studio I like to see an object and all its nested properties open in a watch window. How can I persist that watch window so I can view it as a tab after I've ended the debugging session?

You can not see the value of watching of your object if you close debug. What you can do how ever is to use the functions that System.Diagnostics library offer to monitor some of your variables.

and by using this code

Debug.Write("value of :" + YourVariable);

you can then use the DebugView from Sysinternals to monitor that debug output.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM