microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.53k stars 28.99k forks source link

Debug Console filter with Go is difficult to use and inaccurate #204391

Open jimsnab opened 8 months ago

jimsnab commented 8 months ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Open a Go project that prints a good amount of debugging detail via log
  2. Try to:
    • filter on specific text
    • select all
    • use the mouse to select with scroll
    • type in the filter box using ordinary text editing keys such as home, end
    • rerun the debugger with an active filter

Generally speaking the filter box malfunctions so much that it can't be used.

  1. Filtering on specific text doesn't work. It will show lines that don't match the text. The "Showing x of y" is frequently out of sync with what is shown.
  2. There's no reasonable way to copy the debug output (to paste it in a text document for example)
  3. Using the mouse to select doesn't work. When the select mouse is outside of the window, the selection is lost. That's the main way to scroll, so it is very difficult to select when scrolling is required. There's no keyboard select support so no workaround.
  4. The text editing box doesn't process home or end. Pressing end for example takes you out of the box. Pressing ctrl+home and ctrl+end seem to do what home and end should do.
  5. Upon a rerun with an existing filter, the results are wrong. There are false positives, false negatives, inaccurate count of what's shown.
LumaC0 commented 6 months ago

My issue isn't exactly related to any of the above, but I'm posting here because I do think it can be grouped with the title of the issue.

When focused on the variables section of the debug console, typing doesn't open a small window for recording characters as indicated in the documentation (third image). Subsequently, nothing gets filtered. The first character I press sometimes causes the focus to jump to the first variable name starting with that character, but variable inspection with filtering doesn't seem to happen.

jimsnab commented 6 months ago

There is now some improvement with the latest VSCode. The filter box keys work better, and there is a right click Copy All that works around selection problems. It's not the greatest since it requires copy all even in a common case of large output while only a few pages of that output are desired to be copied. The normal select-while-scrolling, or select-with-mouse wheel, or shift page up down, etc., don't work.