visual stdio trace point 的使用

根據msdn 里 trace point 定義為

Tracepoints are a new way of using breakpoints. A tracepoint is a breakpoint with a custom action associated with it. When the tracepoint is hit, it causes the debugger to perform the specified action instead of (or in addition to) breaking program execution.

 1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5
6 namespace test_tracePoint
7 {
8 class Program
9 {
10 static void Main(string[] args)
11 {
12 Console.WriteLine("hi 大家好");
13 Console.Read();
14 }
15 }
16 }

 

本文參考文章原文:http://blogs.msdn.com/b/zainnab/archive/2010/02/07/setting-a-tracepoint-in-source-code-vstipdebug0010.aspx

posted @ 2011-10-28 22:39  xpxpxp111  阅读(285)  评论(0)    收藏  举报