-
DescriptionI am wondering how folks have approach interactively debugging python functions in a Quarto doc that is not just using ---
format: html
---
```{r}
add_one <- function(x) {
browser()
x + 1
}
add_one(1)
``` if I wanted to step into the ---
format: html
---
```{python}
def add_one(x):
import pdb; pdb.set_trace()
return x + 1
add_one(1)
``` This works ok but it doesn't really take advantage of any of the nice IDE features of something like positron or vscode. Those tools are well setup for debugging python scripts but so far I don't think they really will drop you into a python function at a breakpoint from a quarto doc. Can anyone recommend any other strategies when using python in quarto docs particularly something that leverages the vscode/positron debugger? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
We're pretty far away from being able to do that. In any case, it's a feature request for http://github.com/quarto-dev/quarto (where we host the vscode/positron/rstudio integration code) |
Beta Was this translation helpful? Give feedback.
-
Using Documentation for this feature is here: |
Beta Was this translation helpful? Give feedback.
We're pretty far away from being able to do that. In any case, it's a feature request for http://github.com/quarto-dev/quarto (where we host the vscode/positron/rstudio integration code)