---
title: "Debugging"
output:
rmarkdown::html_vignette:
toc: true
vignette: >
%\VignetteIndexEntry{Debugging}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(macpan2)
library(oor)
```
[![status](https://img.shields.io/badge/status-stub-red)](https://canmod.github.io/macpan2/articles/vignette-status#stub)
## Choosing a Debugging Technique
1. `traceback(m = 1)`
2. `options(error = recover)`
3. `debug({package-function})`
4. `oor_debug$flag({object-method})`