microsoft / microsoft/vscode-cpptools
Failing to start debugger on macOS
Open
Nobody has claimed this yet.
debugger
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Type: Debugger
Describe the bug
- OS and Version: macOS 10.15.5 (19F101)
- VS Code Version: 1.46.1
- C/C++ Extension Version: v0.28.3
- Other extensions you installed (and if the issue persists after disabling them): I have other extensions, but the issue persists if i disable them all except for the cpptools extension
- Trying to start the debugger, however nothing happens like a progress indication for a second. This used to work 3-6 months ago.
Additional context
My launch.json contents:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/tool",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb",
"miDebuggerPath": "/usr/bin/lldb",
"logging": {
"trace": true,
"traceResponse": true,
"engineLogging": true
}
}
]
}
Output of code --log trace --verbose when hitting the debug button:
[main 2020-06-25T08:00:41.340Z] menubarService#updateMenubar 1
[11243:0625/100042.272838:INFO:CONSOLE(1670)] "%cTRACE color: #888 onWillActivateByEvent: onDebug", source: file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js (1670)
[11243:0625/100042.401881:INFO:CONSOLE(1670)] "%cTRACE color: #888 onWillActivateByEvent: onDebugResolve", source: file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js (1670)
[11243:0625/100042.402678:INFO:CONSOLE(1670)] "%cTRACE color: #888 onWillActivateByEvent: onDebug", source: file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js (1670)
[11243:0625/100042.423564:INFO:CONSOLE(1670)] "%cTRACE color: #888 onWillActivateByEvent: onDebug", source: file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js (1670)
[11243:0625/100042.477098:INFO:CONSOLE(1670)] "%cTRACE color: #888 [File Watcher (node.js)] [ADDED] /Users/tobias/Library/Application Support/Code/logs/20200625T100002/ms-vscode.cpptools.txt", source: file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js (1670)
[main 2020-06-25T08:00:42.573Z] menubarService#updateMenubar 1
[11243:0625/100042.702000:INFO:CONSOLE(1670)] "%cTRACE color: #888 [File Watcher (node.js)] >> normalized [ADDED] /Users/tobias/Library/Application Support/Code/logs/20200625T100002/ms-vscode.cpptools.txt", source: file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js (1670)
[11243:0625/100043.924122:INFO:CONSOLE(1670)] "%c ERR color: #f33 timeout after 1000 ms: Error: timeout after 1000 ms
at t.RawDebugSession.handleErrorResponse (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3160:190)
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3159:451
at async t.RawDebugSession.shutdown (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3157:536)", source: file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js (1670)
[main 2020-06-25T08:00:44.686Z] menubarService#updateMenubar 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the launch.json configuration and reproduce the failure using the reported code --log trace --verbose command. Inspect the generated ms-vscode.cpptools.txt log alongside the timeout output to identify where the debugger startup stops. Done means the reported macOS configuration starts the debugger and provides visible launch progress.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, macos, vscode
- Domain
- desktop, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100