lldb

Can't pass parameter of type CGColorRef in LLDB

爷,独闯天下 提交于 2019-12-25 14:25:07
问题 I'm extending Facebook’s Chisel to be able to visualize a color from the debugger. I want it to work for UIColor , CIColor , and CGColorRef . The two object-based ones are working fine, but the CGColorRef is giving me trouble. Here is the bug I'm working from, where I've already hashed out a bunch of the stuff from this question. I've boiled the issue down to this test case: If I have some function: + (UIColor *)someColor { UIColor *uiColor = [UIColor redColor]; CGColorRef cgColor = uiColor

Always trigger the all exceptions break point

百般思念 提交于 2019-12-25 07:50:01
问题 I had enable a All Exceptions break point in my project. But the UIApplicationMain() function always trigger the break point when the app launching. I think there was no exceptions here because if I click the Next Button twice, the app will launch successfully. I have tried commenting the code in the AppDelegate, but it does't work. 回答1: Possible solutions for it could be: Added custom font can cause this issue so, apparently delete (replace) it, somewhere in project is still his reference

How do I get OmniPascal to integrate with LLDB on the macOS 10.12.6

女生的网名这么多〃 提交于 2019-12-24 08:26:17
问题 VSCode v1.14.2 macOS 10.12.6 Sierra lldb -version: lldb-370.0.42 Lazarus 1.8.0 RC3 FPC 3.0.2 Hi Wosi (or anyone that can help!), As you may know debugging Lazarus/Free Pascal on macOS Sierra is problematic because of issues with GDB. This forces us to debug our apps in LLDB using Xcode as the environment (see here: https://macpgmr.github.io/ObjP/ProjectXC.html). This works reasonably well but I would prefer to use OmniPascal/VSCode. I have investigated the VSCode extensions "LLDB Debugger" v0

Ignore exceptions in com.apple.coremedia.networkbuffering

淺唱寂寞╮ 提交于 2019-12-24 05:54:30
问题 I'm getting exceptions thrown in com.apple.coremedia.networkbuffering as described in this question. They don't crash the app or seem to cause any problems. But they make my exception breakpoint useless because it triggers all the time. I found these questions describing some ways to filter "All Exception" breakpoints but didn't have much luck. I examined the NSThread in the debugger hoping to find an some information I could use to construct a condition to apply on the breakpoint, but the

Undefined symbols SystemRuntimeMacOSX::Initialize and SystemRuntimeMacOSX::Terminate

孤者浪人 提交于 2019-12-24 03:54:15
问题 I'm trying to build LLDB as part of Clang/LLVM. LLVM, Clang, Compiler-RT and Extras build OK. However, LLVM has an issue when building with the other components. The directory structure is set up according to LLVM/Clang/LLDB instructions. The docs on LLDB are located at Building LLDB. Below was run from the build directory, which lies next to the llvm directory ( llvm is where all sources were unpacked): $ cd build $ ../llvm/configure --enable-optimized --enable-cxx11 --enable-libcpp --prefix

Debug a dynamically loaded native library in Android Studio?

人走茶凉 提交于 2019-12-24 02:23:11
问题 I have a project that looks like this: - project - app - src.../cpp/ - src.../java/ - other modules... The cpp code is built using cmake in build.gradle: externalNativeBuild { cmake { path "CMakeLists.txt" } } and buildTypes { ... debug { debuggable true jniDebuggable true externalNativeBuild { cmake { arguments "-DCMAKE_BUILD_TYPE=Debug" abiFilters "armeabi-v7a", "armeabi", "x86" } } } } productFlavors { ... experimental { externalNativeBuild { cmake { targets "sqlite_gcd_func" } } } } where

Debug a dynamically loaded native library in Android Studio?

依然范特西╮ 提交于 2019-12-24 02:23:08
问题 I have a project that looks like this: - project - app - src.../cpp/ - src.../java/ - other modules... The cpp code is built using cmake in build.gradle: externalNativeBuild { cmake { path "CMakeLists.txt" } } and buildTypes { ... debug { debuggable true jniDebuggable true externalNativeBuild { cmake { arguments "-DCMAKE_BUILD_TYPE=Debug" abiFilters "armeabi-v7a", "armeabi", "x86" } } } } productFlavors { ... experimental { externalNativeBuild { cmake { targets "sqlite_gcd_func" } } } } where

Debug issues with libc++ in Xcode 4.4

风流意气都作罢 提交于 2019-12-23 09:42:15
问题 I am having a problem when I try to debug on a list iteration on c++. I made a simple test app: int main(int argc, const char * argv[]) { // insert code here... std::cout << "Hello, World!\n"; std::list<int> list; list.push_back(1); list.push_back(2); --> list.push_back(3); //Line before step over for (std::list<int>::const_iterator i = list.begin(); i != list.end(); i++) { std::cout << *i << std::endl; } return 0; } While debugging, when I am on the line marked with an arrow, when I step

Project specific .lldbinit in current working directory not read by Xcode

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 09:27:04
问题 I want to setup project specific .lldbinit files, so that "everything" would be under version control and easily setup in new computers. However it seems like I can read only ~/.lldbinit file and not any ~/git/project/.lldbinit files. LLDB manual say: lldb will read settings/aliases/commands from three files at startup, if they exist. First , it will read a ~/.lldbinit-debugger command file. If you are using the lldb command line interface, this is ~/.lldbinit-lldb. If you are using lldb

NSObject description and custom summaries in Xcode

不羁的心 提交于 2019-12-23 07:47:33
问题 I override object's -(NSString*)description however Xcode always displays error: summary string parsing error in summary field in variables view. My current implementation is the following: - (NSString*)description { return [NSString stringWithFormat:@"<%@ %p> x=%f, y=%f", self.class, self, _x, _y]; } If I type po objectName in console, LLDB shows a fine output as expected, however Xcode and command p objectName always indicate error, so what's the proper debug description format to make