Skip to content

Commit 38a7810

Browse files
committed
add callouts
1 parent 638f18e commit 38a7810

6 files changed

+2
-2
lines changed
Loading
Loading
Loading
Loading
23.8 KB
Loading

docs/get-started/tutorial-console-cpp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,13 @@ Since the user is free to type anything into the console window, let's make sure
287287

288288
1. Right-click the red dot that represents the breakpoint, and select **Conditions**. In the edit box for the condition, enter `(y == 0) && (oper == '/')`. Select the **Close** button to save the breakpoint condition.
289289

290-
:::image type="complex" source="./media/calc-vs2022-set-breakpoint.png" alt-text="Screenshot of a set breakpoint":::
290+
:::image type="complex" source="./media/calc-vs2022-conditional-breakpoint.png" alt-text="Screenshot of a set breakpoint":::
291291
The breakpoint is on the line: result = c dot Calculate ( x, oper, y). 'Conditions...' The Condition option is checked. The Conditions dropdown is set to "Conditional Expression". The condition dropdown is set to "Is true". The condition is set to y == 0 && oper == '/'.
292292
:::image-end:::
293293

294294
Now, execution pauses at the breakpoint when the app tries to divide by 0.
295295

296-
1. To debug the program, press **F5**, or select the **Local Windows Debugger** toolbar button that has the green arrow icon. In your console app, if you enter something like "5 - 0", the program behaves normally and keeps running. However, if you type "10 / 0", it pauses at the breakpoint. You can put any number of spaces between the operator and numbers: `cin` is smart enough to parse the input appropriately.
296+
1. To debug the program, press **F5**, or select the **Local Windows Debugger** debugger toolbar button that has the green arrow icon. In your console app, if you enter something like "5 - 0", the program behaves normally and keeps running. However, if you type "10 / 0", it pauses at the breakpoint. You can put any number of spaces between the operator and numbers: `cin` is smart enough to parse the input appropriately.
297297

298298
:::image type="content" source="./media/calc-vs2022-debug-breakpoint.png" alt-text="Screenshot of Visual Studio editor. Program execution halted at the conditional breakpoint on the line: result = c.Calculate(x, oper, y);.":::
299299

0 commit comments

Comments
 (0)