Skip to content
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

"Run To" should stop in a child frame if the cursor is within a block #848

Open
daniels220 opened this issue Sep 25, 2024 · 0 comments
Open

Comments

@daniels220
Copy link

If I "Debug It" on the following, place the cursor as indicated and "Run To":

#(1 2 3 4) collect: [:each | each * 2]
                               ^
self someOtherCode.

I expect it to stop on the first iteration of the loop, but instead it steps over the whole loop and stops on the next statement. Seems like it would be appropriate for "Run To" to logically consist of a series of "Step Through" operations rather than "Step Over"s. I'm not sure what the performance cost of a "Step Through" is when in fact the step performed does not involve a block—if it's substantial, perhaps it could be detected if the cursor is within a block in order to do this conditionally. In any case, it would be good to fix #847 first to speed the whole thing up.

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

No branches or pull requests

1 participant