clion could not launch lldb on mac os high sierra
Hi, I am Running clion on mac os high Sierra, but I can't debug my code with clion lldb, it always reported the error "Couldn't launch process, Process finished with exit code 0". and here is the logs:
2018-09-0610:13:55,766 [ 64993] INFO - #com.jetbrains.cidr.cpp - Building: /Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake --build /Users/russell.bie/CLionProjects/LeetcodeSolution/cmake-build-debug --target LeetcodeSolution -- -j 6
2018-09-06 10:13:56,116 [ 65343] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 89 req(87): handle_console_command {
thread_id: 4294967295
frame_index: -1
command: "settings set target.process.thread.step-in-avoid-nodebug true"
}
2018-09-06 10:13:56,116 [ 65343] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 148 req(88): handle_console_command {
thread_id: 4294967295
frame_index: -1
command: "settings set target.process.thread.step-out-avoid-nodebug true"
}
2018-09-06 10:13:56,119 [ 65346] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 150 req(136): handle_console_command {
thread_id: 4294967295
frame_index: -1
command: "type summary add --skip-pointers --summary-string \"${var%d} ${var}\" --category cplusplus \"char\" \"signed char\""
}
2018-09-06 10:13:56,119 [ 65346] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 151 req(130): handle_console_command {
thread_id: 4294967295
frame_index: -1
command: "type summary add --skip-pointers --summary-string \"${var%u} ${var}\" --category cplusplus \"unsigned char\""
}
2018-09-06 10:13:56,120 [ 65347] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 152 req(51): handle_console_command {
thread_id: 4294967295
frame_index: -1
command: "type category enable objc"
}
2018-09-06 10:13:56,121 [ 65348] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 152 req(9): values_filtering_policy {
filter_enabled: 1
}
2018-09-06 10:13:56,121 [ 65348] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 153 req(80): handle_console_command {
thread_id: 4294967295
frame_index: -1
command: "script import lldb_formatters.jetbrains_stl_formatters"
}
2018-09-06 10:13:56,123 [ 65350] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 154 req(94): create_target {
exe_path: "/Users/russell.bie/CLionProjects/LeetcodeSolution/cmake-build-debug/LeetcodeSolution"
arch: ""
}
2018-09-06 10:13:56,140 [ 65367] DEBUG - brains.cidr.execution.debugger - LLDBFrontend: /Applications/CLion.app/Contents/bin/lldb/mac/LLDBFrontend 50611
2018-09-06 10:13:56,171 [ 65398] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 185 res:handle_console_command {
common_response {
is_valid: true
}
success: 1
}
2018-09-06 10:13:56,171 [ 65398] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 203 res:handle_console_command {
common_response {
is_valid: true
}
success: 1
}
2018-09-06 10:13:56,172 [ 65399] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 204 res:handle_console_command {
common_response {
is_valid: true
}
success: 1
}
2018-09-06 10:13:56,172 [ 65399] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 204 res:handle_console_command {
common_response {
is_valid: true
}
success: 1
}
2018-09-06 10:13:56,173 [ 65400] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 204 res:handle_console_command {
common_response {
is_valid: true
}
success: 1
err: "warning: empty category enabled (typo?)\n"
}
2018-09-06 10:13:56,173 [ 65400] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 205 res:values_filtering_policy {
common_response {
is_valid: true
}
}
2018-09-06 10:13:56,293 [ 65520] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 325 res:handle_console_command {
common_response {
is_valid: true
}
success: 1
}
2018-09-06 10:13:56,442 [ 65669] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 474 res:create_target {
common_response {
is_valid: true
}
}
2018-09-06 10:13:56,450 [ 65677] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 482 req(68): add_breakpoint {
file: "/Users/russell.bie/CLionProjects/LeetcodeSolution/main.cpp"
line: 10
}
2018-09-06 10:13:56,452 [ 65679] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 483 res:add_breakpoint {
common_response {
is_valid: true
}
id: 1
}
2018-09-06 10:13:56,472 [ 65699] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 498 req(1291): launch {
command_line {
env {
name: "PWD"
value: "/Users/russell.bie/CLionProjects/LeetcodeSolution/cmake-build-debug"
}
env {
name: "LSCOLORS"
value: "Gxfxcxdxbxegedabagacad"
}
env {
name: "NSUnbufferedIO"
value: "YES"
}
env {
name: "HOME"
value: "/Users/russell.bie"
}
env {
name: "Apple_PubSub_Socket_Render"
value: "/private/tmp/com.apple.launchd.LlrQ2RUhNv/Render"
}
env {
name: "LOGNAME"
value: "russell.bie"
}
env {
name: "PATH"
value: "/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands"
}
env {
name: "TMPDIR"
value: "/var/folders/d8/z1gzd4mx2zxcb9nnjz2xd45xn3w5zx/T/"
}
env {
name: "VERSIONER_PYTHON_VERSION"
value: "2.7"
}
env {
name: "SHELL"
value: "/bin/zsh"
}
env {
name: "SECURITYSESSIONID"
value: "186a8"
}
env {
name: "XPC_FLAGS"
value: "0x0"
}
env {
name: "LESS"
value: "-R"
}
env {
name: "ZSH"
value: "/Users/russell.bie/.oh-my-zsh"
}
env {
name: "LC_CTYPE"
value: ""
}
env {
name: "__CF_USER_TEXT_ENCODING"
value: "0x6A3E17FD:0x0:0x0"
}
env {
name: "PAGER"
value: "less"
}
env {
name: "XPC_SERVICE_NAME"
value: "com.jetbrains.CLion.13840"
}
env {
name: "USER"
value: "russell.bie"
}
env {
name: "VERSIONER_PYTHON_PREFER_32_BIT"
value: "no"
}
env {
name: "SSH_AGENT_PID"
value: "667"
}
env {
name: "SSH_AUTH_SOCK"
value: "/var/folders/d8/z1gzd4mx2zxcb9nnjz2xd45xn3w5zx/T//ssh-yl4mMLrd2btd/agent.665"
}
env {
name: "OLDPWD"
value: "/Applications/CLion.app/Contents/bin"
}
exe_path: "/Users/russell.bie/CLionProjects/LeetcodeSolution/cmake-build-debug/LeetcodeSolution"
working_dir: "/Users/russell.bie/CLionProjects/LeetcodeSolution/cmake-build-debug"
stdin_path: "/private/var/folders/d8/z1gzd4mx2zxcb9nnjz2xd45xn3w5zx/T/process_pipe_dir/process_pipe"
stdout_path: "/dev/ttys000"
stderr_path: "/dev/ttys001"
}
}
2018-09-06 10:13:57,117 [ 66344] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 1144 res:composite_broadcast {
modules_loaded {
modules: "dyld"
}
}
2018-09-06 10:13:57,117 [ 66344] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 1149 res:composite_broadcast {
process_running {
}
}
2018-09-06 10:13:57,117 [ 66344] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 1149 res:composite_broadcast {
process_exited {
exit_code: 0
}
}
2018-09-06 10:14:00,119 [ 69346] WARN - brains.cidr.execution.debugger - Cannot detach/abort. Forcing driver termination
2018-09-06 10:14:00,121 [ 69348] DEBUG - brains.cidr.execution.debugger - [protobuf client 1] 4152 req(6): exit {
}
2018-09-06 10:14:00,122 [ 69349] DEBUG - brains.cidr.execution.debugger -
com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriverException: Couldn't launch process
at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver$ThrowIfNotValid.throwIfNeeded(LLDBDriver.java:137)
at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.a(LLDBDriver.java:519)
at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.access$800(LLDBDriver.java:52)
at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver$5.startImpl(LLDBDriver.java:299)
at com.jetbrains.cidr.execution.debugger.backend.DebuggerDriver$Inferior.start(DebuggerDriver.java:668)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess.doStartTarget(CidrDebugProcess.java:436)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess.a(CidrDebugProcess.java:429)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$VoidDebuggerCommand.call(CidrDebugProcess.java:652)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$VoidDebuggerCommand.call(CidrDebugProcess.java:646)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess.a(CidrDebugProcess.java:530)
at com.jetbrains.cidr.execution.ExecutionQueueProcessor.a(ExecutionQueueProcessor.java:26)
at com.jetbrains.cidr.execution.ExecutionQueueProcessor.a(ExecutionQueueProcessor.java:36)
at com.intellij.util.concurrency.QueueProcessor$RunnableConsumer.consume(QueueProcessor.java:280)
at com.intellij.util.concurrency.QueueProcessor$RunnableConsumer.consume(QueueProcessor.java:277)
at com.intellij.util.concurrency.QueueProcessor.lambda$null$0(QueueProcessor.java:79)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:232)
at com.intellij.util.concurrency.QueueProcessor.lambda$wrappingProcessor$1(QueueProcessor.java:79)
at com.intellij.util.concurrency.QueueProcessor.lambda$null$3(QueueProcessor.java:212)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:232)
at com.intellij.util.concurrency.QueueProcessor.lambda$startProcessing$4(QueueProcessor.java:212)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
请先登录再写评论。
@Anna Falevskaya I’ve tried this, but it had no any affect.
Our team have the same problem, two work arounds (both are painful) we found:
1) restart Mac
or
2) delete the build folder and rebuild whole project.
The same issue. The solution of Igorbulakh1987 didn't work (i've deleted jetbrains.clion... file). The solution of Anna Falevskaya also didn't work.
Hi All,
I ( and our team also) still have such an issue. Is there a working solution?
@Ar16sen, @Liangliang Nan please send an email to clion-support at jetbrains.com describing your issue in detail. Also enable debugger logging as described here, reproduce the issue and attach the resulting idea.log file (`Help | Show Log in ...`) to the email. Do not forget to disable debug logging after that. Note that logs might contain private user's information (like file paths and names).
Any update on this? Our team can't debug with CLion. This kinda defeats half of the reason to use CLion.
@Oliora, have you sent the idea.log file to to clion-support at jetbrains.com as requested in the previous comment? The causes of the problems with debugging can be different.
@Anna Falevskaya I've send email with logs from oliora at gmail
I am facing this issue as well while Debugging my C++ code on CLion. The build goes through but the debugger fails to launch:
I enabled debug logs and here is a part idea.log:
Macbook Pro
macOS Big Sur
Processor: 2.6 GHZ 6-Core Intel Core i7
Graphics: AMD Radeon Pro 5500M 4 GB
CLion version.
2021.3.3Build #CL-213.6777.58, built on January 31, 2022Runtime version: 11.0.13+7-b1751.25 x86_64VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.