Skip to content

Reset global env debug flag on error too#1038

Merged
lionel- merged 2 commits intomainfrom
bugfix/breakpoint-deactivation-after-error
Feb 13, 2026
Merged

Reset global env debug flag on error too#1038
lionel- merged 2 commits intomainfrom
bugfix/breakpoint-deactivation-after-error

Conversation

@lionel-
Copy link
Contributor

@lionel- lionel- commented Feb 12, 2026

@DavisVaughan It's because of this bug I had to restart R right in the middle of the debugger demo!

@lionel- lionel- requested a review from DavisVaughan February 12, 2026 18:39
if harp::r_n_frame().unwrap_or(0) == 0 {
unsafe { libr::SET_RDEBUG(libr::R_GlobalEnv, 0) };
}
self.reset_global_env_rdebug();
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be inside handle_active_request()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea!

@lionel- lionel- merged commit ef28468 into main Feb 13, 2026
8 checks passed
@lionel- lionel- deleted the bugfix/breakpoint-deactivation-after-error branch February 13, 2026 08:25
@github-actions github-actions bot locked and limited conversation to collaborators Feb 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants