lldb

aStoryboard.instantiateViewControllerWithIdentifier(“myid”) returns nil but not nil in lldb

不羁岁月 提交于 2020-01-10 06:07:29
问题 This is by far the strangest thing thats happened to me. So I have the code below in a unit test... let aStoryboard = UIStoryboard(name: "myStoryboard", bundle: nil) let viewController = aStoryboard.instantiateViewControllerWithIdentifier("myViewController") as? CustomViewController The code above is executed and viewController is nil, okay that can happen (it shouldn't be because both identifiers exist and files are linked to test targets) but yeah okay. Here's the crazy part, when I add a

llvm reports error declared with incompatible types in different translation units

我只是一个虾纸丫 提交于 2020-01-06 08:33:12
问题 I'm trying to debug a C++ OS X application in XCode 5.1 (5B130a) under OS X 10.9.2. The application is composed of various library projects that get compiled into libraries and used in a main application project. I set a breakpoint in my code and when I run in lldb: expr 2 this is what I get: (lldb) expr 2 error: field '__f_' declared with incompatible types in different translation units ('__base *' (aka 'std::__1::__function::__base<void (std::__1::shared_ptr<const XXX>, const YYY &)> *')

lldb shows wierd std::strings (macOS)

感情迁移 提交于 2020-01-06 07:12:49
问题 I have some troubles getting lldb to show me a correct string output in my CEF FileHandler When I debug this application built with clang-5.0.1 (llvm install with brew) with the debugger lldb: [ 96%] Building CXX object gui/executionGraphGui/CMakeFiles/ExecutionGraphGUI.dir/cefapp/FileSchemeHandlerFactory.cpp.o /usr/local/opt/llvm/bin/clang++ -I/Users/gabrielnuetzi/Desktop/ExecutionGraph/gui/executionGraphGui -I/Users/gabrielnuetzi/Desktop/ExecutionGraph/include -I/Users/gabrielnuetzi/Desktop

Using matplotlib in iphone lldb (obj-c)

夙愿已清 提交于 2020-01-06 07:09:32
问题 I am trying to find a way to display the values in arrays in my ojective-C based iphone program, as described in my other question here I am able to get the contents of an array in my program into the python interpreter while the iphone program is stopped at a break point inside a function (to be specific, the function is the render callback function for audio) However, when I tried to plot the contents of the array (availabe as SBValueList in the Python interpreter) using matplotlib, the

Using matplotlib in iphone lldb (obj-c)

家住魔仙堡 提交于 2020-01-06 07:09:01
问题 I am trying to find a way to display the values in arrays in my ojective-C based iphone program, as described in my other question here I am able to get the contents of an array in my program into the python interpreter while the iphone program is stopped at a break point inside a function (to be specific, the function is the render callback function for audio) However, when I tried to plot the contents of the array (availabe as SBValueList in the Python interpreter) using matplotlib, the

LLDB: Must I build it from source (XCode project) to use it from the command line?

大城市里の小女人 提交于 2020-01-05 09:52:29
问题 XCode comes with LLDB, presumably there is a way to enable it as the debugger to use when debugging XCode projects. Of course being a Linux user I have become a hardcore command-line fanatic and I have a well-established Vim and Tmux workflow. Also being a code portability freak, 100% of my scripts work on both OS X and Linux. So is there some sort of way to "Pull out" the LLDB from deep within the bowels of XCode and run it from the command line? What are the benefits of compiling it

iOS App Crash On Launch With Only LLDB() (The App Works In Simulator)

血红的双手。 提交于 2020-01-05 07:08:48
问题 Just finished updating codebase to Swift 4. It is working fine in the simulator. When I build to a device I get an instant crash with no error message: It works fine in the simulator. There are some threads on it: App crashes only with (lldb)? iOS app crashes with no error, just (lldb) dyld`__abort_with_payload: With no error message From what I learned the problem might be linked binaries but I've dug into my linked binaries and I believe everything is linked correctly. Any thoughts on where

Bug in Android C++/C debugger, incorrect argument values

人盡茶涼 提交于 2020-01-05 02:47:16
问题 I have recently encountered a really weird problem while debugging C/C++ application in Android Studio. I am using Android Studio 3.0 Here is my JNI Call JNIEXPORT jshortArray JNICALL Java_net_crosp_android_library_ecgaudioprocessor_EcgSignalProcessorDemodulator_demodulate( JNIEnv *env, jobject instance, jshortArray readBuffer_) { /* get size of the array */ jsize len = env->GetArrayLength(readBuffer_); int sample_rate = 44100; int kd = 12; SignalConfiguration signal_cfg = {sample_rate, kd,

LLDB: process launch failed: Lost debug server connection

拥有回忆 提交于 2020-01-05 02:36:13
问题 I seem to have trouble getting lldb to run. I'm on a Ubuntu 14.04 system and downloaded lldb-4.0 via apt. (lldb) target create dbgme Current executable set to 'dbgme' (x86_64). (lldb) process launch error: process launch failed: Lost debug server connection I don't want to do any remote debugging. Just local debugging. Do I need to start the lldb-server either way? And if so how do I do that? 来源: https://stackoverflow.com/questions/41232160/lldb-process-launch-failed-lost-debug-server