In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
What are the debug functions of VS2010? in view of this question, this article introduces in detail the corresponding analysis and answers, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
1. The breakpoint can be saved as a cost file through VS2010 (xml format).
Suppose there is a CRUD (add, delete, change, check) function in the contemporary code, when we add the function of debug, we set a breakpoint in the code to check for errors. When you check the deletion again, you need to set a breakpoint for the deletion code and clear the breakpoint you set when you last added functionality to debug. We seemed to do this a lot before VS2010, but now we can save breakpoints through VS2010! In fact, you can set a solution for all breakpoints. Import the previously exported breakpoint solution (xmL file) directly the next time you need debug. Please refer to the following figure for details:
The mouse over button is the export function key (VS2010- > Debug- > Windows- > Breakpoints). To the right is the import breakpoint button.
Debug data hint (DataTip)
When it comes to this function, it can only be described as more powerful. When you debug a complex piece of code, you often use the mouse to hover over a variable to modify the value of the variable to debug. Of course, this feature has been available for VS2008 for a long time. So how to make the data prompt (DataTip) in debug more convenient to display? Please take a look at the following picture:
Hover the mouse over the arrTechnology [I] object, then pop up the prompt box as shown above, and then click the rightmost arrow of the prompt box:
This allows the prompt box to hover in our coding area, click the menu cross to remove the datatip, and click the double arrow down to add comments to the datatip:
The buttons at the beginning and end of the menu on the right side of datatip have been introduced, and the "pin" button in the middle is more powerful. If you click the "pin" icon, you can let our set datatip hover in all the encoded files of the entire VS2010. For details, please see the following picture:
We can see datatip in the Program.cs work area.
If you click the "pin" icon and then switch the VS2010 to the Test.cs file, we can also see the datatip prompt! Please take a look at the following picture:
Of course, breakpoints can be saved as solutions, and the Datatip can also be saved: (VS2010- > Import DataTips) export the xml file, and next time load your datatip debug scheme through (VS2010- > Export DataTips).
3. Other VS2010 shortcut functions
There are some VS2010 shortcut features that are not described in detail here, such as Tab's float and dock, ctrl + mouse wheel zoom in or out code, and so on.
The answers to the questions about the debug function of VS2010 are shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about 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.