目前,我希望使用LLDB调试器调试我的应用程序。如果在iPhone应用程序上设置断点并单击build and run,我就能够成功地在应用程序中运行代码。问题是,如果我不使用Xcode启动应用程序,并将调试器附加到我的iOS应用程序中。这样做意味着我无法调试我的应用程序。
当我从Xcode和一个断点执行build and run并运行LLDB命令list时。我可以看到它正在调试GameViewController.swift文件,但是当我在正常运行后将调试器附加到我的应用程序时,LLDB调试器现在在AppDelegate文件中。
如何让LLDB调试器来调试文件GameViewControlle
我正在尝试调试我的Objective-C程序,并且我需要以十六进制打印我的unsigned long long变量。我正在使用lldb调试器。
为了将short打印为十六进制,
(lldb) type format add --format hex short
(lldb) print bit
(short) $11 = 0x0000
然而,我不能让它在unsigned long long上工作。
// failed attempts:
(lldb) type format add --format hex (unsigned long long)
(lldb) type format add
为什么po返回这些奇怪的错误?(配合Xcode 6.4及Swift)
我尝试使用p /po进行调试:
NSDictionary、String和NSNumber一直都会出现类似的错误。
目前,我使用println(),但我想知道原因是什么?
error: A fatal parse error has occurred. LLDB may become unstable; please restart your debug session as soon as possible.
error: <EXPR>:1:11: error: use of undeclared typ
我正在尝试调试一个Deno项目,但我不知道如何使用lldb调试器在Windows 10上调试,如文档所述。
windows 10上的LLDB似乎不太容易安装。
///reference path="../../deno.d.ts"
import * as deno from 'deno';
import { color } from 'https://deno.land/x/colors/main.ts';
const s = new Set();
[*] s.add('test')
console.log(s);
*<
有时,当试图在调试器中打印变量时,会显示以下错误消息:
error: warning: <EXPR>:12:9: warning: initialization of variable '$__lldb_error_result' was never used; consider replacing with assignment to '_' or removing it
var $__lldb_error_result = __lldb_tmp_error
~~~~^~~~~~~~~~~~~~~~~~~~
_
error
这样的事情在调试时会让我抓狂:
(lldb) p self.bounds
error: unsupported expression with unknown type
error: unsupported expression with unknown type
error: 2 errors parsing expression
(lldb) p (CGRect)self.bounds
error: unsupported expression with unknown type
error: unsupported expression with unknown type
error:
我正在使用一些用于iOS的本地插件开发一个带有trigger.io的应用程序,并且我在调试我的应用程序时遇到了问题。应用程序成功传输到设备,应用程序启动并突然终止。trigger io控制台输出以以下内容结束:
[INFO] (lldb) connect
[INFO] Process 0 connected
[INFO] (lldb) waiting for connection event
[INFO] No connect event, assuming we are already connected
[INFO] (lldb) run
[INFO] error: process lau
表示:
使用Xamarin.iOS对调试C#和其他托管语言代码的本地调试支持,并在需要调试可能与Xamarin.iOS项目链接的C、C++或目标C代码时使用LLDB。
但是,我找不到任何关于如何使用LLDB来调试Xamarin应用程序的文档。如果我在iPhone模拟器中运行我的应用程序并尝试使用LLDB附加到它,我会得到以下错误:
(lldb) attach --pid 37993
Process 37993 exited with status = -1 (0xffffffff) lost connection
error: attach failed: lost connecti
在为Android开发应用程序时,我能够调试本地代码和托管代码。但是,当我在调试会话中断开电缆并手动关闭智能手机应用程序时,它又变得不可调试器了:
java.lang.Throwable: LLDB server not found
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:137)
at com.android.tools.ndk.run.lldb.ConnectLLDBTask.newSessionStarter(ConnectLLDBTask.java:360)
at com.andro
我正在尝试使用lldb调试我的iOS应用程序,但我在调试时遇到了非常奇怪的错误。
在我的断点之前的几行,我得到了:
CGRect frame = view.frame;
我可以在lldb中使用print frame命令来访问它。但是,当我尝试在lldb中再次访问帧时,我键入print view.frame并得到以下错误:
error: property 'frame' not found on object of type 'UIView *'
这没有任何意义,因为我可以通过键入po view并获得正确的结果来验证view是一个UIView*实例,并且具有一个名