Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4 hangs on attaching to (App name) when debugger is set to LLDB

When I run a app in the simulator the Xcode hangs on Attaching to (App name), but this only happens when the debugger is set to LLDB. The app runs fine when the debugger is set to GDB (Product->Edit Scheme -> Run -> Debugger) How can I fix this to debug with LLDB without the Xcode hanging at Attaching to (App name)?

like image 315
Johan de Klerk Avatar asked Jun 06 '12 08:06

Johan de Klerk


People also ask

What does LLDB mean in XCode?

What is LLDB? A low-level debugger (LLDB) is the default debugger used in Xcode and is part of the LLVM project. LLDB replaced GDB in XCode 5 and has several advantages, such as performance and scriptability.

Does XCode use LLDB?

Xcode uses the LLDB as the default debugging tool. The full form of LLDB is Low-level debugger. Breakpoints help a developer to stop the execution of the program at any point.

What is debug executable in XCode?

The “Debug executable” checkbox specifies whether or not you want to run with the debugger enabled. Once running, you can use Debug > Attach to Process on a process that has been launched with debugging disabled if needed. It seems like all this does is start your app with the debugger attached.

How do I unpair a device in XCode?

In XCode open Window - Devices, then select and remove the outdated simulators. Show activity on this post. If you want to see everything it'll execute, you can add echo before xcrun , i.e. Show activity on this post.


1 Answers

I had the same issue, and solved it following these instructions Why does the LLDB Debugger constantly fail to attach? I just added an entry to /etc/hosts translating localhost as 127.0.0.1 and it worked fine.

like image 109
Bartserk Avatar answered Oct 13 '22 21:10

Bartserk