Replies: 1 comment 7 replies
-
Are you running on Linux? If yes, are you able to run |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I try to debug a program, vs code seems hang at loading symbols of shared library. How can I solve it?
my launch.json:
{
// 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}/build/exe/reconstruction/main_automatic",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb",
"logging": {
"engineLogging": true,
"trace": true,
"traceResponse": true
}
}
]
}
log:
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (134) LaunchOptions{"name":"(lldb) Launch","type":"cppdbg","request":"launch","program":"/Users/czh190502/Projects/linyunjing/reconstruction/build/exe/reconstruction/main_automatic","args":[],"stopAtEntry":false,"cwd":"/Users/czh190502/Projects/linyunjing/reconstruction","environment":[],"externalConsole":false,"MIMode":"lldb","logging":{"engineLogging":true,"trace":true,"traceResponse":true},"__configurationTarget":5,"__sessionId":"28aaae7c-657e-49ae-abd2-3d6dbc5113f8","miDebuggerPath":"/Users/czh190502/.vscode/extensions/ms-vscode.cpptools-1.5.1/debugAdapters/lldb-mi/bin/lldb-mi"}\n"},"seq":2}
1: (134) LaunchOptions{"name":"(lldb) Launch","type":"cppdbg","request":"launch","program":"/Users/czh190502/Projects/linyunjing/reconstruction/build/exe/reconstruction/main_automatic","args":[],"stopAtEntry":false,"cwd":"/Users/czh190502/Projects/linyunjing/reconstruction","environment":[],"externalConsole":false,"MIMode":"lldb","logging":{"engineLogging":true,"trace":true,"traceResponse":true},"__configurationTarget":5,"__sessionId":"28aaae7c-657e-49ae-abd2-3d6dbc5113f8","miDebuggerPath":"/Users/czh190502/.vscode/extensions/ms-vscode.cpptools-1.5.1/debugAdapters/lldb-mi/bin/lldb-mi"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (220) Starting: "/Users/czh190502/.vscode/extensions/ms-vscode.cpptools-1.5.1/debugAdapters/lldb-mi/bin/lldb-mi" --interpreter=mi\n"},"seq":4}
1: (220) Starting: "/Users/czh190502/.vscode/extensions/ms-vscode.cpptools-1.5.1/debugAdapters/lldb-mi/bin/lldb-mi" --interpreter=mi
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (242) DebuggerPid=18972\n"},"seq":6}
1: (242) DebuggerPid=18972
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (355) ->(gdb)\n"},"seq":8}
1: (355) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (378) <-1001-gdb-set auto-solib-add on\n"},"seq":10}
1: (378) <-1001-gdb-set auto-solib-add on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (378) ->1001^done\n"},"seq":12}
1: (378) ->1001^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (379) ->(gdb)\n"},"seq":14}
1: (379) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (382) 1001: elapsed time 5\n"},"seq":16}
1: (382) 1001: elapsed time 5
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (383) <-1002-gdb-set solib-search-path "/Users/czh190502/Projects/linyunjing/reconstruction/build/exe/reconstruction:"\n"},"seq":18}
1: (383) <-1002-gdb-set solib-search-path "/Users/czh190502/Projects/linyunjing/reconstruction/build/exe/reconstruction:"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (384) ->1002^done\n"},"seq":20}
1: (384) ->1002^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (384) 1002: elapsed time 0\n"},"seq":22}
1: (384) 1002: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (384) ->(gdb)\n"},"seq":24}
1: (384) ->(gdb)
Beta Was this translation helpful? Give feedback.
All reactions