-
Notifications
You must be signed in to change notification settings - Fork 238
Closed
Labels
Issue-EnhancementA feature request (enhancement).A feature request (enhancement).Needs: TriageMaintainer attention needed!Maintainer attention needed!
Description
Prerequisites
- I have written a descriptive issue title.
- I have searched all issues to ensure it has not already been requested.
Summary
I'm trying to integrate neovim DAP client with powershell. Recently support was added for named pipes in the client, so I got to work and got the integration working. I can launch the debugger, use breakpoints, step through, evaluate expressions, all good.
The only problem is: I don't seem to get the output stream of the actual script. No output when I simply run the script, and neither on the repl. The only way to get output is using the evaluating expressions or watching expressions. The integration is working to some extent; for example I can do $x = 'a' in the repl, and if I watch $x it will show 'a'. Is there any obvious reason from the perspective of my configuration that could explain this behaviour?
local PSES_BUNDLE_PATH = vim.fn.expand("~/.local/share/nvim/mason/packages/powershell-editor-services")
local tmpdir = os.tmpname() .. "d"
os.execute("mkdir " .. tmpdir)
dap.adapters.ps1 = {
type = "pipe",
pipe = "${pipe}",
executable = {
command = "pwsh",
args = {
"-NoLogo",
"-NoProfile",
"-NonInteractive",
"-OutputFormat",
"Text",
"-File",
PSES_BUNDLE_PATH .. "/PowerShellEditorServices/Start-EditorServices.ps1",
"-BundledModulesPath",
PSES_BUNDLE_PATH,
"-LogPath",
tmpdir .. "/logs.log",
"-SessionDetailsPath",
tmpdir .. "/session.json",
"-HostName",
"Neovim",
"-HostProfileId",
"Neovim.DAP",
"-HostVersion",
"1.0.0",
"-LogLevel",
"Normal",
"-DebugServiceOnly",
"-DebugServicePipeName",
"${pipe}"
},
},
}
require("dap.ext.vscode").load_launchjs()
// launch.json object
{
"name": "PowerShell: Current",
"type": "ps1",
"request": "launch",
"script": "${file}",
"cwd": "${file}",
//"createTemporaryIntegratedConsole": true // Does not really change the behaviour
}
Proposed Design
No response
Metadata
Metadata
Assignees
Labels
Issue-EnhancementA feature request (enhancement).A feature request (enhancement).Needs: TriageMaintainer attention needed!Maintainer attention needed!