Skip to content

Commit

Permalink
Explain how to create manual breakpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoss committed Sep 2, 2024
1 parent 589d561 commit cfa162c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/community/training/debugging/example-square-numbers.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ They cover:
- How to inspect the current values of variables; and
- How to step through, and over, lines of code.

!!! info "Manual breakpoints"

You can also create breakpoints in your code by calling [`breakpoint()`](https://docs.python.org/3/library/pdb.html) for Python, and [`browser()`](https://adv-r.hadley.nz/debugging.html#browser) for R.

!!! tip "Interactive debugger sessions"

If your editor supports running a debugger, **use this feature!**
Expand Down

0 comments on commit cfa162c

Please sign in to comment.