Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
60 views

I have previously used lldb to print structures like NSRect or NSSize of 3rd party processes without issues. But I am struggling in modern versions of Xcode to inspect them. Namely since the ...
Marek H's user avatar
  • 5,732
1 vote
0 answers
109 views

On a jailbroken iPhone, I'm attaching the debugserver to an iOS system daemon: debugserver 0.0.0.0:1234 -a <daemon-process>. It is possible to connect to the iOS debugserver using lldb on my Mac....
martin's user avatar
  • 125
0 votes
1 answer
56 views

In Xcode, I set a breakpoint to a function which is a part of an iOS framework and the disassembly view showed up. All function calls except one (0x1bb286280) were symbolicated (i.e. Xcode showed the ...
martin's user avatar
  • 125
1 vote
1 answer
57 views

I would like to skip the whole boost library details when stepping through the code in the debugger. Example uninteresting things I would like to skip: (lldb) n Process 577286 stopped * thread #1, ...
Karoly Horvath's user avatar
0 votes
1 answer
36 views

How do I debug a macports provided package with the source code? I currently see the decompiled assembly language, what I need is the line on which the code crashed. Process 90037 stopped * thread #1, ...
Graham Leggett's user avatar
1 vote
2 answers
162 views

In ObjC++, I just use po $x0 to print the first argument of a function. If it's an object, it will display it in detail. However, in Swift when I do this for an swift object, I got an error: po $x0 ...
demonguy's user avatar
  • 2,131
0 votes
0 answers
184 views

I'm trying to debug my Rust project in VSCode but the debugger doesn't step through the code. I have lldb configured as the debugger, but breakpoints aren't hit, and I can't step through my code. I’m ...
Nikolaj's user avatar
2 votes
1 answer
135 views

MSVC has a very useful flag /SOURCELINK. This allows you to tell where in your versioning system the sources are stored, such that they can be downloaded. For example: (Also holds for C++) { "...
JVApen's user avatar
  • 11.5k
0 votes
2 answers
76 views

Consider this program.cpp: struct Foo { int field1; int field2; }; int main() { Foo foo{.field1 = -1, .field2 = -2}; return 0; } I've implemented a custom LLDB data formatter for the Foo ...
Sam Estep's user avatar
  • 13.4k
1 vote
0 answers
225 views

I'm having trouble attaching lldb directly to a running process on macOS. When I try lldb -p <PID>, I always get error: Connection shut down by remote side while waiting for reply to initial ...
John Joker's user avatar
0 votes
1 answer
158 views

In iOS development, I’ve noticed that when I set a breakpoint on a dispatch_* object (e.g., dispatch_async) in Xcode, it sometimes allows me to trace back to the original caller of the dispatch. In ...
demonguy's user avatar
  • 2,131
0 votes
0 answers
48 views

I've a command line process (https://mpv.io) running on its own terminal window on macOS. I'm attaching to it via an ssh'ed lldb -p <PID> and want to be able to control said app via key presses ...
Adonis's user avatar
  • 1
0 votes
1 answer
139 views

I used Clang to compile a large project to Linux X86_64 executable file my_out. ./my_out runs successfully. When I try to use lldb my_out to debug the execution of my_out. It can success launch the ...
xiaoqiang-wang's user avatar
0 votes
1 answer
71 views

I'm debugging a C project on Mac using LLDB, and the relevant source codes no longer displays inside LLDB commandline, but instead in Xcode. How do I disable this? (lldb) version lldb-1700.0.9.502 ...
DannyNiu's user avatar
  • 1,671
-1 votes
1 answer
285 views

I just learned about the lldb-dap extension for VSCode and set about using it on a trivial hello world program. Well, things are running, but not comfortably. I set a breakpoint on the printf line, ...
Joymaker's user avatar
  • 1,654
0 votes
0 answers
130 views

I have set the compilation option -fstandalone-debug, but still cannot view the string content in vscode with clangd & CodeLLDB. #include <iostream> #include <string> using namespace ...
Yue_Qiu's user avatar
0 votes
1 answer
53 views

I created a ~/.lldbinit file with only one setting: settings set prompt "\x1b[0;33m(lldb) \x1b[0m" hoping only to change the color of prompt. It works, very well, but then there comes an ...
GntlBlly's user avatar
-1 votes
1 answer
40 views

I'm start the iPhone Simulator, then debug with lldb: lldb -n SpringBoard Then i input: p/x @"Yay! Debugging" However, lldb throw error: Error [IRForTarget]: Rewriting an Objective-C ...
thanhps42's user avatar
0 votes
1 answer
91 views

I want a LLDB breakpoint callback to add another breakpoint on the next frame in the callstack. For this I have a file trace_mvp.py with the following code: import lldb def syscall_callback(frame: ...
Billbucket's user avatar
1 vote
1 answer
283 views

I am using nvim and nvim-dap for debugging, in particular with Rust. I would like to make use of rust's pretty printers for lldb while debugging in nvim. Rust provides some pretty printers here: https:...
Tudor's user avatar
  • 157
0 votes
1 answer
184 views

I am debugging Rust in VSCode using LLDB. Why do some of the local variables that appear in the debugger disappear when I place a breakpoint at the end of the scope in the image code? Is there a ...
cjk's user avatar
  • 3
2 votes
0 answers
146 views

I use codelldb extension in vscode. Before, this configuration in settings.json worked: { "name": "LLDB coredump", "type": "lldb"...
zclll's user avatar
  • 127
1 vote
0 answers
57 views

New to assembly, trying to write some fibonacci recursive code .section __TEXT,__text,regular,pure_instructions _main: mov X0, 5 bl fib bl exit fib_end: mov X0, 0 b exit .align 2 fib: ...
Adar Maori's user avatar
1 vote
1 answer
76 views

In lldb, I need to break everytime I change module (e.g. the stack frame is in a dynamic library instead of the main binary). How can I do that?
DevShark's user avatar
  • 9,198
0 votes
1 answer
84 views

Please note: this question is not about statically determined conditional code compilation. My question is: how do I determine at runtime that my process is being debugged by LLDB by analyzing the ...
Isaaс Weisberg's user avatar
2 votes
1 answer
307 views

I recently made a custom container that stores multiple type arrays in a single contiguous memory block with custom stride mechanism instead of SoA or AoS. The problem is that all standard debug ...
aldb's user avatar
  • 33
0 votes
1 answer
63 views

I'm using lldb to debug an application and I have this breakpoint right before a call SCNetworkReachability imp___stubs__SCNetworkReachabilityCreateWithAddress: jmp qword [...
IRP_HANDLER's user avatar
3 votes
2 answers
2k views

I am receiving the "error: unknown option: --interpreter=mi" when trying to debug with lldb in VS Code on Mac for C++, Clang Compiler, and an OpenMP implementation. I am unable to debug ...
superbadtunacan's user avatar
0 votes
1 answer
79 views

I'm trying to run a Python debug script in LLDB, but I'm getting invalid thread errors. I'm not sure why. Here are my programs: main.c: #include <stdio.h> #include <stdlib.h> int addNumbs(...
tadm123's user avatar
  • 8,989
0 votes
1 answer
190 views

I am using vscode+rust-analyzer+codelldb to debug rust code on Ubuntu server 24.04. I want to easily see values in a Dataframe or Series like what we usually do when debugging python pandas programs, ...
Swamp Rager's user avatar
1 vote
1 answer
150 views

I have cloned sqlite3 codebase from github and ran following command on folder. ./configure --disable-amalgamation --debug After that I have ran following command to build make sqlite3 sqlite3 is ...
CSRd's user avatar
  • 223
0 votes
1 answer
177 views

image add will add a new module to the current target list, but how can I remove a module afterwards?
Kotosif's user avatar
  • 353
6 votes
2 answers
201 views

Is it ever possible to use lldb's various variable formatting options for arrays that have been passed to a function? I have a simple C array that I pass into a quicksort function like this: int main(...
friendlyman23's user avatar
2 votes
0 answers
158 views

This works: clang-cl -MTd -Z7 -fuse-ld=lld main.c -o main.exe lldb main.exe And lldb finds the debug symbols. But I want to use clang and not clang-cl as its command line syntax is the same on all ...
OetkenPurveyorOfCode's user avatar
1 vote
0 answers
319 views

I ran a small C++ program: #include <iostream> #include <map> #include <vector> using namespace std; class Solution { public: string minWindow(string s, string t) { ...
Bob 's user avatar
  • 21
0 votes
0 answers
113 views

I live on a Macintosh. I want to be able to build and debug my code on Macintosh and Windows both. So I set up my Windows world in a parallels VM running Windows 11, on my Apple Silicon 1 Macintosh. (...
Joymaker's user avatar
  • 1,654
2 votes
2 answers
56 views

Printing outgoing data sent with SSL_write() on ARM64 is quite simple: break set --auto-continue true -n SSL_write break command add memory read -f Y -c `$x2` $x1 DONE The signature of SSL_write()...
Mecki's user avatar
  • 135k
1 vote
0 answers
78 views

Check this screenshot for reference. ❯ uname -a Darwin APPLEs-MacBook-Air.local 23.6.0 Darwin Kernel Version 23.6.0: Wed Jul 31 20:49:46 PDT 2024; root:xnu-10063.141.1.700.5~1/RELEASE_ARM64_T8103 ...
Vinay's user avatar
  • 21
0 votes
2 answers
88 views

In GDB I have a Python script which uses gdb.prompt_hook to send a command to an open vim session whenever the current file/line number changes. Effectively giving me a "live updating" ...
Jacob's user avatar
  • 80
0 votes
2 answers
337 views

In LLDB you can do the following during a debugging session to add missing symbols at particular addresses: target modules load --file <symbol file> .text 0x<address> How can you do that ...
Kotosif's user avatar
  • 353
0 votes
1 answer
266 views

In GDB you can do add-symbol-file <library> <address> to load symbols files at a particular address. What's the equivalent in LLDB? I have already tried image add <symbol file> ...
Kotosif's user avatar
  • 353
1 vote
0 answers
52 views

I often have to reenter the same steps when debugging a program with lldb so I decided to put them into an .lldbinit file: file main b ft_printf run next I should automatically load the file, set a ...
Bastian's user avatar
  • 63
0 votes
1 answer
170 views

CLion SIGABRT I am using CLion 2024.1.6, lldb-1600.0.39.3. In debug mode, the program triggered SIGABRT. It is expected that breakpoints should be triggered here. I want to know what the problem is. I ...
user21129838's user avatar
5 votes
0 answers
253 views

I have VS Code on an Ubuntu machine configured to debug a Rust application. When running, the debugger will stop at a breakpoint as expected. The problem is that once it hits the breakpoint, it ...
Jordan's user avatar
  • 4,670
1 vote
0 answers
100 views

I am building an MPI C project in Xcode. In order to do run it, I had to: Specify /path/to/mpiexec in Edit Scheme -> Run -> Info -> Executable, instead of the "default" one, say ...
FueledByPizza's user avatar
5 votes
2 answers
562 views

I'm using Mac OS Sonoma 14.5 with LLDB 1500.0.404.7 installed via x-code tools. I noticed that my LLDB behaves in a rather confusing way. It is able to print out some std:containers in their entirety ...
Sidharth Ghoshal's user avatar
1 vote
0 answers
252 views

A problem occurs when I use VSCode to debug clickhouse compiled from source code: Could not resolve any locations for breakpoint at ~/ClickHouse/programs/local/LocalServer.cpp:480, but found a valid ...
koarz's user avatar
  • 21
0 votes
1 answer
291 views

I have a simple macOS app that spawns 14 threads running the same function. If I set a breakpoint within the function, and run the application from within command line lldb, instead of breaking on the ...
alcroito's user avatar
  • 431
3 votes
1 answer
515 views

In LLDB, the step command steps over a whole asm{} block as a single "statement". Is there a way to make it treat each instruction separately so you don't have to use si to step ...
Juraj's user avatar
  • 113
0 votes
0 answers
141 views

I have written a code like this: #include <iostream> int main(){ int a,b; std::cin >> a >> b; std::cout << a+b; } After running the run command in GDB, I managed ...
GavinCQTD's user avatar

1
2 3 4 5
41