-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to set break point #14682
Comments
IMPORTANT: please note that I have now deleted this version, and installed the earlier version: Version 2023.12.1+402 (2023.12.1+402) And breakpoints work JUST FINE |
@gunawebs Thank you for raising this! I'm unable to reproduce the issue on either MacOS 14 or Windows 11. Can you please provide a minimal code example that results in the problem? |
@ronblum As shared in screenshot above. I was just not able to set breakpoint, in a sourced file. |
@gunawebs I can't reproduce the problem based on the screenshot because part of the code is cut off on the right, it uses objects there were defined elsewhere, and there are at least 219 lines that aren't included. Does this occur with any sourced file? For example, is it possible to set a breakpoint in the following code?
|
I encountered the same only in this latest rstudio version, you have to manually resource the function before the breakpoint is set, an any file. platform x86_64-pc-linux-gnu Rstudio: $version $long_version $release_name |
@ronblum Yes, the issue is with all files. PLs see above comment from @sthawinke Too! |
@sthawinke Can you provide a simple reproducible example? And can you check whether this will cause the problem? I'm trying to find a simple example that I can use to reproduce, because I'm unable to so far. Also, does the problem occur even with this simple example?
|
Thanks! I can reproduce the problem in 2023.03.2+454, 2023.12.1+402, and 2024.07.0-daily+131. So this has always been a requirement. Note this only affects the function; when adding something outside of the function like
the breakpoints will work. This is by design, and only the newly defined functions that are affected. We'll look into whether changing this is doable. |
System details
Steps to reproduce the problem
Create any R code file with a function
Source the file
Add a breakpoint
Describe the problem in detail
Despite Sourcing the file, breakpoint is NOT placed
Just says "Breakpoints will be activated When this file is sourced"
But the file has ALREADY been sourced.
THIS issue wasn't there before I upgraded the rstudio to the latest version
Describe the behavior you expected
Expected Behaviour: Breakpoint will be placed
The text was updated successfully, but these errors were encountered: