2,039 questions
1
vote
0
answers
231
views
When using vscode to debug clickhouse, the source code breakpoints will jump to the corresponding assembly code
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 ...
3
votes
1
answer
416
views
Debugging inline ASM with LLDB - treat instructions as separate statements for the step command?
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 ...
2
votes
1
answer
290
views
Debugging with LLDB over SSH "error: process exited with status -1 (no such process.)" MacOS
I'm trying to debug an executable, that I manually built with clang, with lldb on MacOS host (ssh'd into) machine, through ssh. However, when I run it I get:
(lldb) error: process exited with status -...
0
votes
1
answer
111
views
How to debug macOS app in lldb that takes over keyboard focus?
I am porting an app to macOS that takes over keyboard focus. It is seg faulting and I have no problems attaching lldb and running the program until it hits a breakpoint before entering the function ...
1
vote
1
answer
68
views
What does the address of a function item represent in rust-lldb?
I am using rust-lldb to explore function item & function pointer in Rust. The code is very simple:
// src/main.rs
#[inline(never)]
fn add(a: i32, b: i32) -> i32 {
a + b
}
#[inline(never)]
...
2
votes
1
answer
161
views
Update Interfaces in the Simulator (without SwiftUI)
I have this example:
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Line where the breakpoint will be placed
view....
0
votes
1
answer
405
views
Setting up SDL2 with OpenGL in Visual Studio Code
I’m trying to set up an OpenGL project using SDL2 in Visual Studio Code on macOS, but I’m running into two issues:
SDL2 Libraries Not Found: Visual Studio Code can’t find the SDL2 libraries even ...
-1
votes
1
answer
92
views
In Xcode there a way to mark a routine so that 'Step Into' will skip over the routine?
When stepping through code with the debugger using 'Step Into,' Xcode steps into constructors, destructors, and assignment operators. This is especially frustrating when the routine is compiler-...
0
votes
0
answers
260
views
lldb fails to launch a process
I rely on lldb to fine-tune and study my code optimizations as an applied math instructor, and somehow, probably upgrading either macOS to 10.13.6, or the last compiler suite from Apple for that ...
0
votes
0
answers
63
views
g++ -g debug symbols don't include filename
I've been trying to get lldb working recently and I ran across the issue of breakpoints not being able to find files. So I did a small test, wrote an empty main function and compiled it with MinGW g++ ...
0
votes
2
answers
795
views
how to set up lldb environment in vscode?
all. I am trying to set an environment for lldb in vscode. For example, on the terminal if I run my executable in lldb, I get the following:
(base) cdwalke8@MSLAL0422100041 examples % lldb ./...
0
votes
1
answer
210
views
Cannot set breakpoints in LLDB and/or VSCode
I've created a very basic LLVM IR example for myself, to understand how source level debugging works.
Given this made-up source code, in a file called blaha.txt:
extern function puts(str: string): ...
0
votes
1
answer
232
views
How to cross-compile LLDB with buildroot
Hi currently Im using the latest version of buildroot 2024, the issue is even when they have support for some components of the LLVM-Project, they don't have the option to compile LLDB, so I worked a ...
0
votes
1
answer
168
views
Can I forward stdout / stderr from an attached process to lldb's console?
Consider the program:
#include <stdio.h>
#include <unistd.h>
void example() {
printf("Hello, world!\n");
}
int main() {
sleep(1);
sleep(1);
sleep(1);
}
The sleep(...
0
votes
1
answer
755
views
LLDB can't list function nor set a breakpoint
I'm having some trouble using lldb, I want to set a breakpoint for a macho file at the start label and at a function called Function1. Ideally i'd like to list all the functions like in gdb with the '...
1
vote
1
answer
622
views
XCode lldb Error error: module 'GTMSessionFetcherCore' not found
suddenly lldb po command stopped working in XCode.
When I'm trying to use it, it gives the following error:
error: couldn't IRGen expression: Clang importer error
error: /Users/User/Git/Project/Pods/...
0
votes
1
answer
54
views
LLDB convenience function in Python
Is it possible to write an LLDB extension in Python which provides a function which can be used in expressions at the LLDB command-line, similar to this for GDB?
I've searched the LLDB Python API ...
2
votes
0
answers
229
views
VSCode Rust debugger Library not loaded
Since I updated my Mac with a M3 Pro to Sonoma 14.4 this spring I'm facing different issues with the "libmysqlclient.20.dylib".
The first issue I faced was that my program wasn't running at ...
0
votes
0
answers
69
views
lldb printing ipv6 address in textual form
While debugging some library called c-ares which send multiple dns requests for efficiency. I was trying to verify that it properly loaded the correct dns server by printing the network binary ...
1
vote
0
answers
188
views
Debugging LLDB with Swift fails to execute `po` command with couldn't IRGen expression: Clang importer error - missing OpenGL headers
I have an app that links ARKit.
Recently and totally randomly my ability to po ...some code... is gone with the following error:
error: couldn't IRGen expression: Clang importer error
error: /...
0
votes
1
answer
254
views
Build LLVM, Clang and Libfuzzer
I am a beginner and I want to build LLVM, clang and Libfuzzer from source. So I run the cmake command
cmake -S llvm -B build -G Ninja \
-DLLVM_ENABLE_PROJECTS="clang;lldb" \
-...
4
votes
0
answers
762
views
Debugger display rust enums
I have a bigger project using enums with structs inside them and I have problem with vscode debugger not being able to display anything. I wrote simple test program to demonstrate the issue. Is there ...
1
vote
1
answer
274
views
Is there a JDK for Mac OS that you can debug with LLDB? [closed]
I am currently trying to debug a problem in a Java program that at some point jumps into a JNI function and never returns from it. So to debug this JNI code I want to attach LLDB. The problem is that ...
0
votes
1
answer
189
views
Is there a way to perform home path expansion for target.source-map in .lldbinit?
In .lldbinit it is possible to use a '~' for home path expansion for certain commands such as command script import
For example,
command script import ~/MyScripts/foo.py
is perfectly acceptable.
This ...
0
votes
1
answer
581
views
lldb Immediate exit with status = -1 lost connection
I can't get llbm to run on my (2020 Intel) Macbook (with updated command line tools).
I create a file test.c containing:
#include <stdio.h>
int main(){
printf("hello world\n");
}
...