debugger icon indicating copy to clipboard operation
debugger copied to clipboard

[FileSearch] Searching a string in a file preempts the scroll behavior from when stepping in a program

Open julienw opened this issue 9 years ago • 12 comments

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:

  1. open https://everlong.org/mozilla/testcase-debugger/
  2. Open the debugger
  3. open the file script.js
  4. type CTRL-F, search for the string Lorem. It should match something.
  5. open the file (index)
  6. put a breakpoint line 13 (line behavior())
  7. click the button. The debugger should break at line 13.
  8. 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.

julienw avatar Jun 23 '17 16:06 julienw

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

jasonLaster avatar Jun 24 '17 02:06 jasonLaster

@anshul is working on this

jasonLaster avatar Aug 15 '17 16:08 jasonLaster

Here is a GIF of the bug:

and a commit of a potential fix.

jasonLaster avatar Aug 16 '17 16:08 jasonLaster

@anshul still interested in this?

jasonLaster avatar Sep 08 '17 17:09 jasonLaster

/claim

jbhoosreddy avatar Jan 22 '18 21:01 jbhoosreddy

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 avatar Jan 22 '18 21:01 claim

/claim

AlexisDeschamps avatar Feb 26 '18 23:02 AlexisDeschamps

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 avatar Feb 26 '18 23:02 claim

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: ezgif-4-ed56a099f0

AlexisDeschamps avatar Mar 01 '18 18:03 AlexisDeschamps

ooh...

Try doing a git bisect. Or basically git checkout a commit from a week or two ago and run yarn; yarn start

jasonLaster avatar Mar 01 '18 19:03 jasonLaster

yep, i couldn't reproduce either. @julienw mind trying again?

jasonLaster avatar Mar 05 '18 19:03 jasonLaster

yes I believe this is fixed

julienw avatar Mar 06 '18 10:03 julienw