You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/debugger/using-tracepoints.md
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Use tracepoints in the debugger | Microsoft Docs"
3
-
ms.date: "9/4/2019"
3
+
ms.date: "9/17/2019"
4
4
ms.topic: "conceptual"
5
5
helpviewer_keywords:
6
6
- "tracepoints, about tracepoints"
@@ -12,12 +12,12 @@ ms.workload:
12
12
---
13
13
14
14
15
-
# Use Tracepoints in the Visual Studio debugger
15
+
# Use tracepoints in the Visual Studio debugger
16
16
17
17
Tracepoints allow you to log information to the Output window under configurable conditions without modifying or stopping your
18
18
code. This feature is supported for both managed and native code as well as several languages such as JavaScript and C#.
19
19
20
-
## Let's Take an Example
20
+
## Let's take an example
21
21
22
22
The following example program is a simple `for` loop with a counter variable that increases by one every time the loop runs another iteration.
23
23
@@ -93,7 +93,6 @@ If you want to print the value of counter when the iteration of the `for` loop c
93
93
94
94

95
95
96
-
97
96
The behavior of the **When changed** option is different for different programming languages.
98
97
99
98
- For native code, the debugger doesn't consider the first evaluation of the condition to be a change, so doesn't hit the tracepoint on the first evaluation.
@@ -130,3 +129,11 @@ While tracepoints are intended to make debugging a cleaner and smoother experien
130
129
Sometimes when you inspect a property or attribute of an object, its value can change. This is not a bug caused by the tracepoint feature itself, but it is worth mentioning that using tracepoints to inspect objects does not avoid these accidental modifications.
131
130
132
131
The way that expressions are evaluated in the **Action** message box may be different than the language you are currently using for development. For example, to output a string you do not need to wrap a message in quotes even if you normally would while using `Debug.WriteLine()` or `console.log()`. Also, the curly brace syntax (`{ }`) to output expressions may also be different than the convention for outputting values in your development language. (However, the contents within the curly braces (`{ }`) should still be written using your development language’s syntax).
132
+
133
+
## See also
134
+
135
+
-[What is debugging?](../debugger/what-is-debugging.md)
136
+
-[Write better C# code using Visual Studio](../debugger/write-better-code-with-visual-studio.md)
137
+
-[First look at debugging](../debugger/debugger-feature-tour.md)
138
+
-[Expressions in the debugger](expressions-in-the-debugger.md)
0 commit comments