LLDB exited immediately after the app was launched
The following is LLDB debug Log
[DEBUG codelldb::debug_session] Debug event: 0x5c5089ed0 Event: broadcaster = 0x5c49de238 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x5c49de200 (pid = 86910), state = exited} [DEBUG codelldb::dap_codec] <-- {"seq":33,"type":"event","event":"output","body":{"category":"console","output":"Process exited with code -1.\n"}} [DEBUG codelldb::dap_codec] <-- {"seq":34,"type":"event","event":"exited","body":{"exitCode":-1}} [DEBUG codelldb::dap_codec] <-- {"seq":35,"type":"event","event":"terminated","body":{}} [DEBUG codelldb::dap_codec] --> {"command":"disconnect","arguments":{"restart":false,"terminateDebuggee":false},"type":"request","seq":10} [DEBUG codelldb::dap_codec] <-- {"seq":36,"type":"response","request_seq":10,"success":true,"command":"disconnect"} [DEBUG codelldb::dap_session] The client has disconnected [DEBUG codelldb::debug_session] End of the requests stream [DEBUG codelldb::debug_session] DebugSession::drop() [DEBUG codelldb] End of the debug session [DEBUG codelldb] Exiting Debug adapter exit code=0, signal=null.
I've tried to google solution for the problem, but didn't find anything specific. I can suggest to those:
Option 1: set alternative backend — I've found recently that setting xcode native lldb sometimes helps
{
"lldb.library": "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB"
}
Option 2: build from Xcode itself first – just in case, some autoconfiguration is needed from Xcode