ruby/vscode-rdbg

Break event does not displayed on GUI with specific environment

jljse opened this issue · 3 comments

jljse commented

Environment

  • Windows11 WSL2: ubuntu 20.04.1
  • ruby: 3.1.0p0 (in rbenv in wsl2)
  • debug gem: 1.4.0 (globaly installed)
  • vscode: 1.63.2
  • vscode Remote - WSL: v0.63.13
  • vscode rdbg ruby debugger: v0.0.8

What happened

I'm not sure that this is vscode-rdbg's bug at all,
but breakpoint hit does not displayed on vscode on specific situation.

Reproduce

  1. Make foo.rb
while s = gets
  puts s
end
  1. from Windows Terminal, open remote debug with
    $ rdbg -nO foo.rb

  2. From vscode, attach to process with default setting (generated by vscode-rdbg).

  3. (breaks on gets line, press F5 twice) (this is also weird, but that's not my point)

  4. From vscode, set breakpoint on puts line.

  5. MAXIMIZE vscode's window and Windows Terminal 's window.

  6. Activate Windows Terminal and type something + RET into stdin.

  7. Wait 1s

  8. Alt+Tab to switch to vscode

  9. (breakpoint-hit is not displayed, and GUI hungs)

  10. Back to Windows Terminal and show vscode again, then breakpoint-hit is displayed.

ko1 commented

Sorry I couldn't reproduce it. It seems VSCode issue?
(my env: WSL2 + VSCode on windows host + putty, ruby 2.7.3p183 and debug.gem master)

jljse commented

Yes, today I found below
microsoft/vscode#123257
This looks very same issue.
Sorry to bother you.

(FYI, WSL2 + vscode on windows (Remote SSH) + putty(ssh) makes same issue on my environment)

ko1 commented

Thank you. I close it and please reopen if we can help.