Use IntelliTrace to debug in Visual Studio 2010. NET application

Source: Internet
Author: User
Tags execution visual studio visual studio 2010

A new feature in Visual Stuido 2010 is that Intellitrace.intellitrace was introduced to Visula Studio to speed up our right. NET application, it can quickly pass on the state of the program during execution and various kinds of information to help the developer to better debug the program and quickly discover the problem by tracking the preset events and methods and passing them to the debugging performer effectively. In fact, prior to Visual Studio 2010, Microsoft Visual Stuido had helped us to inherit the debugging tools, such as monitoring variables, viewing stacks, and so on, and allowing breakpoints to be set for Single-step debugging. All of this is good for developers to understand the state of the program in different execution and to detect whether it works according to the actual logic in advance, and more, we detect the problem by monitoring the program state after the breakpoint. The problem with this is that some logical errors can occur before the breakpoint is executed, and it is likely that some are untraceable. The developer must stop the current debugging, reset the breakpoint and start debugging, which often takes many times to find the correct location to set the breakpoint.

What data are collected by IntelliTrace?

So what did IntelliTrace bring to us? As the name suggests, it intelligently tracks and implements some of the debugging information and program status to developers, thereby reducing the need for programmers to find the right breakpoints to track and monitor the state of the program's operation. So what's the use of this information? What data did IntelliTrace collect? It depends on the type of data we notify the IntelliTrace and its control over its size, so that IntelliTrace collects part of the data in the way we expect it to, rather than all of the program state information in the immediate debugging process. Visual Studio provides us with two ways to control the content source for which it collects information, one IntelliTrace events only, collecting data about intelligent tracking events and debugging interrupts; the other is IntelliTrace events and Call information, which collects various data on the entry and exit of a method invocation except for the IntelliTrace event. Let's take a look at how to set trace options for IntelliTrace in Visual Studio 2010.

First we need to check that the IntelliTrace feature is open in Visual Stuido 2010. In Visual Studio 2010, select Tools | Options ... "Open Option dialog and select" IntelliTrace | General ". Make sure the Enable IntelliTrace is selected.

Figure 1:visual Studio IntelliTrace settings.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.