Using -EnableConsoleRepl
freezes the debug session until user input is received
#2164
Open
5 of 6 tasks
Labels
Prerequisites
Summary
Starting the debugging service on an external terminal with both the
-EnableConsoleRepl
and the-DebugServiceOnly
flags and then attaching to it via nvim-dap using the following adapter:and the following config:
Results in the debugger session correctly starting and the Integrated Terminal being displayed, but the current script isn't launched right away.
If then the enter key is pressed while inside of the Integrated Terminal, something like the following is shown:
The first line is the empty line where the user pressed the enter key. The second line is the script launched by Powershell Editor Services (only launched after the user issued an empty command).
The first breakpoint is hit inside of the script
The debugger is told to continue until the next breakpoint, nothing happens. The user has to, once again, issue an empty command before the debugger stops before the next breakpoint.
Notes:
eval
request. The request isn't processed until an empty command is issued by the user.PowerShell Version
Editor Version
PowerShell Editor Services Version
Steps to Reproduce
pwsh -NoProfile -File /path/to/powershell-editor-services/PowerShellEditorServices/Start-EditorServices.ps1 -HostName nvim -HostProfileId Neovim -HostVersion 1.0.0 -LogPath /path/to/powershell_es.log -LogLevel Normal -BundledModulesPath /path/to/powershell-editor-services -EnableConsoleRepl -SessionDetailsPath /path/to/powershell_es.session.json -DebugServiceOnly <some-harcoded-temp-path-on-unix-or-named-pipe-on-windows>
nvim example.ps1
(example.ps1
must contain any powershell code like somewrite-host
commands) using the config described in the summary (I can provide aminimal.lua
config if needed):lua require'dap'.toggle_breakpoint()
:lua require'dap'.continue()
enter
key on the Integrated Terminal (issuing an empty command)Visuals
No response
Logs
PowerShellEditorServices-100695.log
StartEditorServices-100695.log
The text was updated successfully, but these errors were encountered: