Skip to content

Commit 9183b66

Browse files
committed
add debug mode concept
1 parent 41b1e41 commit 9183b66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/pages/learn/01_tutorial/08_more-resources/02_debugging.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ You might be wondering why it is called "debugging". The term became popular in
3030

3131
A debugger is a tool in your IDE (integrated development environment) that lets you see the values of different variables at different points in the program. It's like a really powerful magnifying glass. While a few details vary between Eclipse/IntelliJ/NetBeans/VS Code, the concepts are the same.
3232

33+
When you run your code, you can choose to launch it in regular/run mode or debug mode. This allows you to deicde when you want to debug.
34+
3335
<a id="println">&nbsp;</a>
3436
## Why not Println?
3537

@@ -76,7 +78,7 @@ public class Answer {
7678
}
7779
```
7880

79-
When the debugger stops on line 5, I see that `part2` is the seven that I expected. However `part1` is five, not six. I found the bug! Thanks to the debugger allowing me to set a breakpoint.
81+
It is important to run the program in debug mode for the breakpoints to take effect. (Remember, if you don't run in debug mode, all breakpoints are ignored.) When the debugger stops on line 5, I see that `part2` is the seven that I expected. However `part1` is five, not six. I found the bug! Thanks to the debugger allowing me to set a breakpoint.
8082

8183
<a id="usage">&nbsp;</a>
8284
## How can debuggers be used?

0 commit comments

Comments
 (0)