-
Notifications
You must be signed in to change notification settings - Fork 254
Debugging problems
Debug adapter crashes when hovering mouse pointer over expressions or when typing in the Debug Console
LLDB has known crashing bugs that can be triggered by evaluating certain expressions in the debuggee. Even if you're aware of the problematic expression, it may be difficult to avoid triggering a crash due to automatic evaluation during mouse hovers and command completions in the Debug Console.
To mitigate these issues, CodeLLDB provides two boolean configuration settings to disable these behaviors: lldb.evaluateForHovers and lldb.commandCompletions, respectively.
Symptom: When debugging Swift binaries, local variables are garbled or not shown at all.
See Swift page.
Symptom: Electron applications fail to launch under the debugger with an error similar to this:
const rc = app.rc = require('../rc')
TypeError: Cannot set property 'rc' of undefined
Electron applications typically consist of several cooperating processes, some of which have specific roles, as configured by environment variables set the main process. Since VSCode is an Electron application itself, its children, including the debugger and the debuggee will inherit these variables as well, which may cause them to function incorrectly. The solution is to reset all ELECTRON_...
variables in the launch configuration:
"env": {
"ELECTRON_RUN_AS_NODE": "",
"ELECTRON_NO_ATTACH_CONSOLE": "",
}