Debugging in VSCode with the `--debug-adapter` fla...
# general
t
Debugging in VSCode with the
--debug-adapter
flag results in this error occasionally: "Cannot read properties of undefined (reading 'defaultEncoding')". Any idea where to look at? We have been struggeling with this for a while now.
Maybe @bitter-ability-32190 or @wide-midnight-78598 have any idea?
w
I haven't run into this, but as with any VSCode hooks, there are a few items to look into (more generally speaking) • Is this a mac and/or linux and/or WSL problem? • Does it depend on the version of Python • Does it depend on the version of VSCode • Is it a
debugpy
issue (e.g. this is on 1.8.x now I think) • And probably a few more parameters to look at I haven't looked into the DAP yet, I'm more familiar with the LSP side of VSCode. But from the error, what I'm curious about is whether this is a static problem (e.g. some sort of config), or whether it's throwing that error during DAP communication back and forth (I've seen equivalents on the LSP side during configuration when I made a mistake). • Do you have any way to reproduce? • Or is there are any conditions when this has not happened? • Also, does it happen as soon as you launch the debugger? Or does it happen mid-usage? • Edit: Almost forgot - these are all kicked off via
launch.json
?
Not the first time it’s popped up though - supposedly something about writing to a location: https://github.com/microsoft/vscode-python/issues/16519 The action (not solution, but action) was to turn off logToFile - and see if that helped.
b
I got nada