Skip to content

Setting breakpoints forces function/package/etc. to be sources before breakpoint is activated #15201

Closed

Description

@hdshea

System details

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

image

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.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. added
    new
    on Sep 19, 2024
  2. added this to the Kousa Dogwood milestone on Sep 19, 2024
  3. self-assigned this
    on Sep 26, 2024
  4. gtritchie commented on Oct 9, 2024

    @gtritchie
    Member

    Reproduced the problem in 2024.04.2+764, tried again in 2024.11.0-279 and confirmed this is now working.

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

Metadata

Metadata

Assignees

Labels

bugdebuggingnewsupport

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions