You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Helix editor provides an experimental debugger which I am trying to integrate with debugpy for debugging python scripts. My current configuration is as shown in the code snippet below. I am able to launch the debugger and setup breakpoints, but as soon as the first breakpoint is reached Helix is put into the background and the terminal (zsh) gets messed up. Is there anything that needs to be changed with the config to get it working?
[[language]]
name = "python"
[language.debugger]
name = "debugpy"transport = "stdio"command = "python3"args = ["-m", "debugpy.adapter"]
[[language.debugger.templates]]
name = "source"request = "launch"completion = [ { name = "entrypoint", completion = "filename", default = "." } ]
args = { mode = "debug", program = "{0}" }
It looks like Helix cannot parse the "stackTrace" response that's coming from debugpy. Unfortunately, the error message doesn't include the specific part of the message that is problematic, so it's hard to say more.
That said, I suspect that the problem is parsing Module.id (in a "module" event) and/or StackFrame.moduleId (in "stackTrace" response). The DAP spec defines it thus:
id: number|string;
and debugpy always uses sequential integer IDs in practice, so 0 would be the ID reported for the first module. If Helix tries to interpret it as a string, it would manifest like that.
Environment data
Actual behavior
Helix editor provides an experimental debugger which I am trying to integrate with debugpy for debugging python scripts. My current configuration is as shown in the code snippet below. I am able to launch the debugger and setup breakpoints, but as soon as the first breakpoint is reached Helix is put into the background and the terminal (zsh) gets messed up. Is there anything that needs to be changed with the config to get it working?
DAP related log from Helix:
Expected behavior
Working DAP in Helix editor
Steps to reproduce:
The text was updated successfully, but these errors were encountered: