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-breakpoints.md
+25-1Lines changed: 25 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,31 @@ You can set breakpoints when you want to stop debugger execution, perhaps to see
60
60
61
61
You can set a breakpoint on any line of executable code. For example, in the C# code above you can set a breakpoint on the variable declaration, the `for` loop, or any code inside the `for` loop, but you cannot set a breakpoint on the namespace or class declarations or the method signature.
62
62
63
-
## <aname="BKMK_Set_a_breakpoint_in_a_source_file"></a> Setting Other Kinds of Breakpoints
63
+
## <aname="BKMK_Set_a_breakpoint_in_a_source_file"></a> Setting a function breakpoint
64
+
You can break execution when a function is called.
65
+
66
+
1. Open the **Breakpoints** window and choose **New > Function Breakpoint**.
67
+
68
+
2. Enter a function name in the **Function Name** box.
69
+
70
+
To narrow the function specification:
71
+
72
+
Use the fully qualified function name.
73
+
Example: Namespace1.ClassX.MethodA()
74
+
75
+
Add the parameter types of an overloaded function.
76
+
Example: MethodA(int, string)
77
+
78
+
Use the '!' symbol to specify the module.
79
+
Example: App1.dll!MethodA
80
+
81
+
Use the context operator in native C++.
82
+
{function, , [module]} [+<line offset from start of method>]
83
+
Example: {MethodA, , App1.dll}+2
84
+
85
+
3. In the **Language** dropdown, choose the specific language of the function you want to break on.
86
+
87
+
## <aname="BKMK_Set_a_breakpoint_in_a_function"></a> Setting Other Kinds of Breakpoints
64
88
You can also set breakpoints in the call stack, in the Disassembly window, and, in native C++ code, at a data condition or a memory address.
65
89
66
90
## <aname="BKMK_Set_a_breakpoint_in_the_call_stack_window"></a> Setting a Breakpoint in the Call Stack Window
0 commit comments