lldb

Is there any way to breakpoint all the button touchUpInside method?

六眼飞鱼酱① 提交于 2019-12-03 13:25:29
问题 Sometime it happens when you got project with very unmanaged code so you can't figure out how to solve a simple issue. In most of the case debugger helps us to reach the root point to start with, I just want to know how strong is xcode debugger is. As I used some asm debugger like OllyDbg these provide us a no. of option to for breakpoint the most I used is breakpoint on click event or tap event. So is there any way to put a similar breakpoint on xcode project ? 回答1: Sounds like you are

LLDB: Setting a breakpoint for malloc_error_break through the console

杀马特。学长 韩版系。学妹 提交于 2019-12-03 12:31:04
I'm running into some malloc-related issues in my code: malloc: *** error for object 0x103401e28: incorrect checksum for freed object - object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug I've tried things like: (lldb) breakpoint set malloc_error_break error: invalid combination of options for the given command How do I set this breakpoint using the terminal? I've searched online and only found results involving Xcode. If you are familiar with gdb, then this little cheat-sheet might help: http://lldb.llvm.org/lldb-gdb.html Also: (lldb) help break

lldb error: process launch failed: unable to locate lldb-server

谁说我不能喝 提交于 2019-12-03 11:59:10
I'm running Xubuntu 16.04. After installing lldb from the repositories, I get the following output when I try to use it: lldb foo (lldb) target create "foo" Current executable set to 'foo' (x86_64). (lldb) r error: process launch failed: unable to locate lldb-server Any ideas what I'm missing? After an hour or so of fiddling around, I found the solution. I copied /usr/bin/lldb-server-3.8 and named it /usr/bin/lldb-server . This is probably a problem with the ubuntu package. I recommend setting an alternative rather than copying. On Ubuntu, you can do this with: sudo update-alternatives -

In Xcode 4 GM, how do I turn on LLDB? All I see is GDB

倖福魔咒の 提交于 2019-12-03 11:00:25
In the scheme run debugger popup, all it shows is 'None' and 'GDB'. This is for an iPad 4.2 simulator built with LLVM. Jano You can't. In words of an Apple employee, LLDB is not available for iOS development yet . As of july 2011 it is unknown when LLDB will become available for iOS. In Xcode 4.0.2 your only option is GDB. In Xcode 4.2 you have LLDB as an option, but you can't use it: The LLDB project doesn't list a date for iOS support. The FAQ says: Q: What targets does LLDB currently support? Mac OS X native debugging for i386 and x86_64 targets. And the WWDC 2011 sessions that talk about

error: Couldn't IRGen expression, no additional error [duplicate]

守給你的承諾、 提交于 2019-12-03 06:42:00
问题 This question already has answers here : Xcode 10, LLDB: Couldn't IRGen expression (3 answers) Closed last month . I can not print debug information in my UI TESTS. Configuration: Xcode 10 and SWIFT 4.2. When I try to print something in console I can only see an error: "error: Couldn't IRGen expression, no additional error" I didn't have any problem in earlier versions of Xcode (8,9 etc), only in Xcode 10. I can not print anything, when I put breakpoint and try to print for example app po

How to call class methods in the iOS simulator with lldb?

折月煮酒 提交于 2019-12-03 06:08:19
I'm trying to debug an iOS app and I'm having problems with lldb in the simulator. Calling class methods doesn't seem to work. Instance methods work fine. (lldb) po Category <no result> (lldb) po [Category class] error: Couldn't prepare the expression for execution in the target (lldb) po self (TagsTableViewController *) $5 = 0x085585a0 <TagsTableViewController: 0x85585a0> I've tried the 4.3 and 5.1 simulators but both exhibit the same issues. Everything works fine when debugging on a device. This works. Thanks to @devioustree who answered in a comment above. Basic command is structured like

XCode's po command has stopped working

拟墨画扇 提交于 2019-12-03 05:15:42
At some point during my work, XCode's po and p commands stopped working. No matter what I enter, it doesn't generate output: (gdb) po self (gdb) po [self name] (gdb) po [UITableView class] (gdb) po @"Hello" (gdb) p indexPath.row (gdb) print indexPath.row (gdb) po fjkldsjflksdjklwjfkljfkldsjflk (gdb) When I enter any of these commands, the command line just goes to the next line, where it prints the blue (gdb) , but no output. I tried the following steps: Restart XCode, restart my Macbook Tried while debugging in the simulator as well as on a iOS device Switched to LLDB and restarted Re

Cannot debug Swift module/framework embedded in Objective-C app

旧街凉风 提交于 2019-12-03 04:46:44
问题 Alternative titles (to aid searching) Cannot debug Swift 2.3 framework linked to an Objective-C app in Xcode 8 error in auto-import: failed to get module 'XYZ' from AST context Xcode 8 Xcode 8 cannot debug Swift framework warning: Swift error in module <XYZ> Workaround for; Xcode Debugger cannot debug apps written in Objective-C only but that link against frameworks written in Swift only. (28312362) I have an app written in Objective-C that links against some modules (frameworks) written in

LLDB Python scripting in Xcode

对着背影说爱祢 提交于 2019-12-03 04:38:34
问题 I've just discovered this handy feature of LLDB that allows me to write Python scripts that have access to variables in the frame when I'm on a breakpoint in LLDB. However I'm having a few issues when using it in Xcode (v4.5.2). Firstly, I can't find anywhere that says where I should keep these Python scripts so that I can import them from the command line in LLDB. Secondly, after I type script into LLDB the keyboard input goes a bit wrong: backspace doesn't delete the character on the screen

Debugger's “p” and “po” commands in Xcode?

非 Y 不嫁゛ 提交于 2019-12-03 04:28:11
Example. I write the following string in my old project and a new, clear one: UIInterfaceOrientation k = [UIApplication sharedApplication].statusBarOrientation; Console input-output for a clear project: (lldb) po k UIInterfaceOrientationLandscapeLeft And something awful in my old project if I write "po k" - a list of useless integers. Additionally I can't print most of objects in the new project. I don't know what is going on in your case, but just so folks are clear on the difference between po & p : The p command (a.k.a. expr -- ) takes the arguments it is given, compiles them as though they