shiny-vscode icon indicating copy to clipboard operation
shiny-vscode copied to clipboard

Feature Request: Debug Shiny App (for R shiny)

Open jeffkeller-einc opened this issue 10 months ago • 1 comments

Loving Positron and the extensions so far but one area where the experience is a step backward compared to RStudio is debugging R shiny apps. Being able to set breakpoints within reactives is incredible useful when developing non-trivial apps. Would be great to have debugging capabilities for R shiny apps in addition to Python shiny apps.

Related to:

https://github.com/posit-dev/shiny-vscode/issues/12 https://github.com/posit-dev/shiny-vscode/pull/17

jeffkeller-einc avatar Feb 28 '25 14:02 jeffkeller-einc

Agreed and I know that the Positron team will bring break-point debugging in R files to Positron soon. When that happens we'll look into adding debugging support here for Shiny for R apps.

In the mean time, for the best experience in Positron, add browser() statements where you'd want to add breakpoints and run the app from the Console rather than using the extension. I know this isn't the ideal way to enter debugging, but once you've made it into the debugger, the experience in Positron is pretty good.

gadenbuie avatar Mar 03 '25 16:03 gadenbuie