In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Let me tell you about Visual Studio debugging today. The content of the article Xiaobian think good, now to share with you, think there is a need for friends can understand, hope to help everyone, the following with the idea of Xiaobian to read together.
1: DbgView and vs output windows:
For the Debug output that I wrote in the code, we can see in the vs output window and print some variable data that we care about. When our program is running, we can use DbgView to get our prints.
2: Breakpoint: (This is familiar):
Visual Studio provides us with Condition, Hit Count, Filter, when Hit, Edit lab, Export centralized operations, not much to say here, we all know.
When debugging multiple processes, we can use Filter to filter other processes to concentrate on one process:
Conditional breakpoints can debug not only when conditions are met, but also when the value of an expression changes. For example, for a variable i, I only care where it changes, and if it changes, the breakpoint stops.
3:Debugger:
Gives us the OS excuse to enable communication with the debugger. There are several important methods:
1: Break: Signals a breakpoint connecting the debugger.
2: IsLogging: Check whether logging is enabled for the connected debugger.
3: Launch: Launch the debugger and connect it to the process.
4: Log: Send a message to connect to the debugger.
5: IsAttached: Gets a value indicating whether the debugger is attached to the process.
4:DataTips:
It provides the value of the variable that we modify during debugging.
5: Abnormal handling decisions:
In Debug->Exception.., Here we can set exception throw decisions. Sometimes for our code blocks that have been tried catch, I need to find the exception block so that va can catch it and see where the exception stops.
6:Debug attribute:
Visual Studio provides us with several Attribte:DebuggerBrowsable,DebuggerDisplay, etc. for our debugging. Very useful for debugging complex objects. In the yard, Brother Zhu Qilin has translated a Few Tips on Customizing Debugging Window View in Visual Studio, which is to introduce these articles, so I am not prepared to write more, directly the original text
Visual Studio custom debugging forms two tips.
7: DebuggerVisualizers:
We want to see DebuggerVisualizers for a DataTable:
We must be familiar with, in fact, this is what we can customize (implement the DialogDebuggerVisualizer abstract class under Microsoft.VisualStudio.DebuggerVisualizers), please see Demonicsoft brother's custom Visual Studio debugging window. Inspired by this we can customize some common Debugger Visualizers, I think for example our xml operation, when debugging we want to see the structure of the node and its children, compared to our program run. There are also interface drawings such as winform or wpf. When we operate a certain operation, we would like to see our form or graphics drawing results at this time, etc.
The above is what Visual Studio debugging features have all the content, more and Visual Studio debugging features what related content can be searched for before the article or browse the following article to learn Ha! I believe that Xiaobian will add more knowledge to everyone, I hope you can support it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.