You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setting breakpoints forces function/package/etc. to be sources before breakpoint is activated #15201
RStudio Edition : Workbench version
RStudio Version : 2024.04.1+748.pro2
OS Version : Ubuntu 22.04.4 LTS
R Version : R version 3.6.3 (2020-02-29)
Steps to reproduce the problem
Use this simple function:
test_f <- function(x, y){
x <- x + 1
y <- y + 1
x * y
}
Source the function within the RStudio IDE
Set a breakpoint somewhere in the code using the RStudio IDE
Describe the problem in detail
Setting breakpoints forces function/package/etc. to be sources before breakpoint is activated. This seems to be a regression as it is different behavior from earlier versions. (For complete transparency, Kevin Ushey and Jonathan McPherson confirmed the persistence and replicability of the issue on latest versions of the IDE).
Describe the behavior you expected
Breakpoint should be accepted without requiring re-sourcing.
Activity
gtritchie commentedon Oct 9, 2024
Reproduced the problem in 2024.04.2+764, tried again in 2024.11.0-279 and confirmed this is now working.
improve automation runner and add breakpoint regression tests (#17598)
port debugger BRAT tests (4 of 8) to Playwright (#17710)
complete BRAT to Playwright migration (#17713)