[FileSearch] Searching a string in a file preempts the scroll behavior from when stepping in a program
Normally, when stepping in a program, I expect that the current line is scrolled to while I step.
But it looks like that when we have a search string that matches in the same file, the view is scrolled to the match instead of the stepped line.
STR:
- open https://everlong.org/mozilla/testcase-debugger/
- Open the debugger
- open the file
script.js - type CTRL-F, search for the string
Lorem. It should match something. - open the file
(index) - put a breakpoint line 13 (line
behavior()) - click the button. The debugger should break at line 13.
- press the button "step in" to step in the function
behavior.
Expected:
- The current line should be visible.
Actual:
- it's not, instead the search is hilighted.
This fixes the bug, but I think we should revisit and see if we can better organize the options findNext, keepSelection...
https://github.com/jasonLaster/debugger.html/tree/fix-search-pause
@anshul is working on this
@anshul still interested in this?
/claim
Thanks for claiming the issue! :wave:
Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.
:fox_face: Debugger team!
/claim
Thanks for claiming the issue! :wave:
Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.
:fox_face: Debugger team!
I was actually able to replicate the bug about a week ago, but now I don't seem to be able to. Could recent updates have fixed the bug?
Here's what I get now:

ooh...
Try doing a git bisect. Or basically git checkout a commit from a week or two ago and run yarn; yarn start
yep, i couldn't reproduce either. @julienw mind trying again?

yes I believe this is fixed
and a