Expression evaluation input disappears from Debug Console.
Describe the bug
When running the debugger, the expression evaluation input disappears from Debug Console. So it isnt possible to use lldb commands like po. This doesn't always happen, but it seems to happen most frequently when running tests.
To Reproduce Steps to reproduce the behavior:
- Open project with tests
- Add break point in test and debug it
- Go to debug console
- There is nowhere to input
po,pstyle commands
Environment
- macOS 15.5
- Apple Swift version 6.1.2 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
- Visual Studio Code version: 1.100.3
- vscode-swift version: 2.4.0
+1 I encountered this today for the first time (2.4.0). I was also debugging a test.
I've seen this happen before and I'm pretty sure it's a VS Code issue. Do you see a cryptic error message in the Developer Tools about something being disposed? When this happened to me none of the other debuggers (NodeJS/CodeLLDB) worked either and I had to restart VS Code.
Do you see a cryptic error message in the Developer Tools about something being disposed?
I'm going to pay more attention the next time it happens, but I think yes.
I'd also be curious to know if this only happens if you have the debugger set to lldb-dap (which is now the default since 2.2.0) or if it also happens if you change to CodeLLDB. You can set your debugger back end using the setting swift.debugger.debugAdapter.
Let me see if I can confirm this ... I was using lldb-dap although usually i would use CodeLLDB because it's more reliable.
Mission failed. I did reproduce this 2 times but still can't tell anything for sure. Tried to find a pattern for reproduction but no luck on that either. Tried to capture it happening but ... you guessed it: the bug appears to detect camera usage and only happens off the record.
@adam-fowler @MahdiBM as hard as I've tried I cannot reproduce. I'll put it on the backlog to watch for. When it happens again, any extra information you could provide would be great like platform, toolchain version, was it lldb-dap or CodeLLDB, a diagnostic bundle so we can checkout settings. In the meantime if you could set the lldb-dap.log-path setting, we could get a trace log of messages from lldb-dap for when this happens again