debugger icon indicating copy to clipboard operation
debugger copied to clipboard

Multi row strings make the debugger lines jump up and down

Open andreicristianpetcu opened this issue 6 years ago • 5 comments

multi_row

andreicristianpetcu avatar Jun 01 '20 11:06 andreicristianpetcu

Thanks for the report!

@andreicristianpetcu Can you please provide a simple page we could use to see the bug on our machines? It would be great help.

Thank you

janodvarko avatar Jul 13 '20 16:07 janodvarko

I think I hit the debugger bugs BINGO! :smile: https://codepen.io/andreicristianpetcu/pen/JjGeNww?editors=0010 image Not sure if all these issues have the same cause but I'll list them here. If they are different issues, please report separate issues.

  1. I was unable to reproduce the bug I mentioned with the pen I wrote but I got close: stepping over with f10 makes things jump and down. In the original bug mouse over on variables made it jump and down.

  2. There is a huge gap between line 29 and 30 when I set a breakpoint at 31 image

  3. Column breakpoint splits the console word |>cons|>ole.|>log(myVar1); image

  4. Cursor takes a lot of vertical space and you can even have multi line selection in a really strange way image image

  5. There are some really strange pieces of code that appear in this example that I did not write. image image

@janodvarko

andreicristianpetcu avatar Jul 18 '20 12:07 andreicristianpetcu

Sorry for the delay!

I loaded the https://codepen.io/andreicristianpetcu/pen/JjGeNww?editors=0010 What should I do next? Where exactly in the code I should break and step?

Honza

janodvarko avatar Aug 24 '20 11:08 janodvarko

@janodvarko Thank you for looking into this. Set a breakpoint at line 30. Step over with F10. image

andreiuipath avatar Aug 25 '20 09:08 andreiuipath

Thanks, I was able to reproduce the problem now.

I believe that this is duplicate of: Bug 1573562 - Prevent previews from flashing effect when stepping

The workaround here is to switch of the inline variable previews. You can use the Settings menu (see the gear icon in the top right corner of the Debugger panel)

Closing this report.

We are moving our bug tracking into Bugzilla anyway, so please file new bugs (if any) here: https://bugzilla.mozilla.org/enter_bug.cgi?product=DevTools&component=Debugger

Thanks, Honza

janodvarko avatar Aug 25 '20 09:08 janodvarko