View, explore & add variables when debugging R shiny app in Positron #8546
Replies: 2 comments 4 replies
-
The Debug Variables pane up in the top left is the correct place to look for variables in the current debug frame. This also responds to any variables you create in the Console while in debug mode (it should refresh if you type It is limited though, i.e. you can see how it just reports To further dig into the object, right now you should just use the Console like it looks like you've already done. You printed out It is also worth noting that the main Variables pane up in the top right will always reflect the Global Environment, and not the environment of the current debug frame, so that is not where you should be looking when debugging. |
Beta Was this translation helpful? Give feedback.
-
I completely agree with @AlastairCSmith that there is something a bit off when using the debug mode in Positron, and I’d like to make a related request to the developers. In VSCode, the Data Wrangler plugin (unfortunately not available in Positron) allows opening dataframes directly via a right-click on any variable present in the "Debug Variables" panel, using the "View dataframe in data viewer" option. This is extremely convenient and works for both Python and R. It would be very helpful, for consistency and usability, to have the same kind of shortcut in Positron’s "Variables" panel when in debug mode. A simple "click to view" action, similar to what’s already available for R objects, would go a long way. At the moment, the workaround is to run View(variable) manually in the console, which opens it in the Positron data viewer, but that only works in R it seems... (?) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm loving Positron and wish to move from Rstudio to using it as my main IDE however I can't do so yet due to not being able to solve the following issue. Can anyone help with this, maybe I've missed something obvious?
In Positron I'm able to launch my R shiny app and enter a break point defined by 'browser()' but I do not see how to access/explore the local variables in debug mode?
In Rstudio this is very simple via the view() function and 'Environment' panel, plus importantly any new variables I create in debug mode are easily explorable in this way. How can I access the same functionality in Positron?
Beta Was this translation helpful? Give feedback.
All reactions