diff --git a/index.html b/index.html index 1aadf3d..6616b32 100644 --- a/index.html +++ b/index.html @@ -828,10 +828,19 @@

Interactive debugger

Interactive debugger tips

-

Investigate objects: ls(), str(), ls.str(), print()

-
-

-

Control execution:

+


+
+
+

Investigate objects

+


+


+

Control execution

+
+ +
+

ls(), ls.str(),
str(), print()

+


+
@@ -846,7 +855,7 @@

Interactive debugger tips

- + @@ -866,7 +875,8 @@

Interactive debugger tips

ccontinuecontinue (leave interactive debugging)
s
-

:::

+
+
@@ -892,7 +902,7 @@

Your turn, exercise 01

-
+
15:00
@@ -1027,7 +1037,7 @@

Your turn, exercise 02

-
+
07:00
@@ -1204,7 +1214,7 @@

Your turn, exercise 03

-
+
10:00
@@ -1351,7 +1361,7 @@

Your turn, investigating a CRAN package

-
+
03:00
@@ -1395,7 +1405,7 @@

Your turn, investigating source code

Hints on next slides.

-
+
05:00
diff --git a/index.qmd b/index.qmd index 764a367..6b3ab21 100644 --- a/index.qmd +++ b/index.qmd @@ -470,25 +470,50 @@ g <- function(x) f(x) ## Interactive debugger tips -Investigate objects: `ls()`, `str()`, `ls.str()`, `print()` +
-. . . +::: columns +::: {.column width="35%"} - +Investigate objects + +
-Control execution: +
+ +Control execution +::: + +::: {.column width="5%"} +::: + +::: {.column width="55%"} +`ls()`, `ls.str()`,
`str()`, `print()` + +
+ +::: {.small} | command | operation | |---------|-------------------------| | `n` | next statement | -| `c` | continue | +| `c` | continue (leave interactive debugging) | | `s` | step into function call | | `f` | finish loop / function | | `where` | show previous calls | | `Q` | quit debugger | +::: + +::: ::: + + + + + + ## Debugging your code ![](img/debugging_yours.svg)