Skip to content

Conversation

@DavisVaughan
Copy link
Contributor

@DavisVaughan DavisVaughan commented May 8, 2024

Addresses posit-dev/positron#2310 enough for public beta, I think

The biggest win here is that we no longer leave "debug mode" when a frame gets added to the stack that isn't marked with RDEBUG, which was horribly confusing because R is still in the browser but you can't click "next" using the UI, you have to go down and type it in the console to continue.

This approach technically gives an "accurate" view of the frame you are in, but it isn't particularly useful with these cases (lazy eval of args and extra try-catch frames) as you will see in the videos. I also tried the idea of dropping the non-debug frames, but that ends up being just as confusing, so I think that this simpler approach of showing everything that R tells you is on the stack (even if some are not debug frames) is probably good enough for now - this way also preserves the ability to look at the stack in the bottom left and click your way up the stack of tryCatch internals if you want to.

force.mov
try-catch.mov
adds-frames.mov

@DavisVaughan DavisVaughan requested a review from lionel- May 8, 2024 16:50
Copy link
Contributor

@lionel- lionel- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants