Cursor moves to beginning of file while stepping if an exception occurs during a test #4692
Labels
in debugger
Relates to the debug adapter or process of launching a debug session
in testing
Relates to test execution of Dart/Flutter tests for end users
is bug
Milestone
Hello there,
It's been a while since I came by .. hope all is well!
Describe the bug
When running a test in debug mode, the cursor in the test file moves to the beginning of the file after each run.
This is inconvenient since after each time I run the test, I have to scroll back to the line wherever the test is to run it again.
To Reproduce
Steps to reproduce the behavior:
create a new dart project (i.e.
dart create debug_cursor_issue
)go to the test file and paste the sample code there (given below).
scroll down to the test
place the cursor somewhere within the test
click on the

debug
button shown above the test within the file.click the
continue
button in the debugger controller until the end.the cursor now should've moved to the top of the file.
>>>> Sample Code <<<<<<
Expected behavior
I expect the cursor to stay in its place -- it's inconvenient to keep scrolling back after each run especially in large test files.
Please complete the following information:
The text was updated successfully, but these errors were encountered: