Open markschat opened 2 years ago
Could´nt give up on the idea of using VSCode as my main IDE for R (dark mode, git integration, JS, ... 🥰).
Here is a solution I came up with that seem to work.
Prerequisites
?shiny::runApp()
for possible setups)
Example:
myProject/
├── app.R
├── R/
│ ├── module.R
Debugging
browser()
(see https://shiny.rstudio.com/articles/debugging.html)shiny::runApp()
in the debug consoleI've found that shiny::runApp()
/ shiny::shinyApp()
will both only actually run the app when print()
is called, so changing your script to
app <- shiny::runApp()
print(app)
will probably be what you want to use (with a Launch R-File mode profile)
I just switched to VSCode for writing Shiny-Apps with custom JS. Loving the experience so far 🤩 thank´s for this great package btw as it adds ton of value! An issue I stumbled upon is that I can´t find any ressources on how to debug
shiny
using theVSCode-R-Debugger
. My own attempts failed.My question is: