2,039 questions
4
votes
2
answers
7k
views
Debugging C++ on VSCode MacOS: Module containing this breakpoint has not yet loaded or the breakpoint address could not be obtained
I have got three files:
main.cpp
#include <iostream>
#include "log.h"
int main()
{
int a = 8; // Breakpoint on this line
a++;
const char *string = "Hello";
...
0
votes
1
answer
446
views
CodeLite can't connect to DAP server?
I using CodeLite 17.0.0 on MacOS 12 Monterey 12.6.6
I followed the steps on the Debug Adapter Client page of CodeLite to download the llvm through brew but when I run lldb I get a time out error which,...
1
vote
1
answer
2k
views
Visual Studio Code's debug console doesn't run basic commands like LLDB?
I'm trying to learn to debug using VS Code. I created a launch configuration in launch.json, for attaching to my process (a C++ program). I'm on macOS, so it uses LLDB. It attaches, and I can stop in ...
0
votes
0
answers
448
views
lldb: error: summary string parsing error
So I'm running windows with llvm and msvc. When I compile my program with clang++ and try to debug it with lldb and inspect a string variable I get "error: summary string parsing error".
#...
0
votes
2
answers
949
views
visual studio lldb.exe liblldb.dll not found
I installed clang tools in Visual Studio.
Clang works fine.
But when running lldb.exe, it says liblldb.dll not found
2
votes
2
answers
2k
views
VSCode + codeLLDB + mac M2 error: the platform is not currently connected
I am able to run lldb directly from the terminal, but VSCode debug mode raises an error
My config is
Version: 1.79.1 (Universal)
Commit: 4cb974a7aed77a74c7813bdccd99ee0d04901215
Date: 2023-06-12T16:16:...
0
votes
1
answer
365
views
LLDB - printing contents of a static variable inside function
I've got the following code that define an Instance method in static class.
namepsace AAA {
class BBB {
static BBB& Instance() {
static BBB bbb();
return bbb;
}
}
I'd like ...
1
vote
1
answer
380
views
LLDB warning: Unable to resolve breakpoint to any actual locations on Windows 10
after compiling my hello world program with clang -g .\main.cpp -o .\main.exe I then run and try to set a breakpoint but it does not resolve.
lldb .\main.exe
(lldb) target create ".\\main.exe&...
0
votes
0
answers
872
views
Why are my breakpoints not being hit when debugging Google Unit Test with LLDB in Visual Code C++?
I am using LLDB to debug my Google Unit Test binary in Visual Code. I have added debug breakpoints in the Debug console
But the test executes without waiting at any of the breakpoints. What am I ...
0
votes
1
answer
118
views
LLDB Python API how do I know a thread is exited?
How do I know if an SBThread has exited or finished running the code ?
I wrote an LLDB script to track all the fn calls made by a program since its start. The loop is supposed to end after the last ...
0
votes
1
answer
156
views
Print strings as pointers in lldb
Here's a snippet from a session with lldb:
* thread #1, name = 'so', stop reason = breakpoint 5.1
frame #0: 0x000000000040113c so`test(hello="Hello, world!") at so.c:5:18
2
3 ...
2
votes
2
answers
2k
views
Stepping over `brk` instructions in lldb on AArch64
I'm working on a JIT compiler on the ARM64 platform. In order to debug the machine code it emits, sometimes I will have the compiler emit a brk instruction so that I can inspect the state of things ...
6
votes
2
answers
3k
views
Why is lldb so painfully slow?
I'm trying to debug a very simple C program on OSX and the debugger is taking MINUTES for each step over instruction, with instructions as simple as doing a single multiplication. I've googled a lot ...
0
votes
0
answers
215
views
How to debug a dynamic library
I've got a XCode workspace.
This workspace holds the main target (Swift) and a target with a dynamic library embedded in a framework.
The entry of the framework is a wrapper class written in Objective-...
0
votes
0
answers
662
views
How to pass environment variables to a remote application using LLDB?
I'm trying to debug a remote application that runs inside a Kubernetes Pod using LLDB. The remote application is started with the following command:
lldb-server platform --verbose --listen *:40007 --...
-1
votes
1
answer
160
views
lldb case-insensitive image lookup
I have read that is it possible to run case-insensitive image lookup in lldb (I'm using Xcode 13) by using (?i). However, I cannot get it to work; I must be doing something wrong, and I cannot find ...
1
vote
0
answers
210
views
Debugging python–cpp bindings
I have written a C++-library with bindings for python. My python code (a jupyer notebook) calling the library makes crashes. The problem lies within the library. I would like to debug this (using lldb,...
0
votes
1
answer
584
views
In debugging with lldb: how do you access current variable values in a linked list?
I am trying to debug my code and want to follow the progression of my code line by line.
How do I view the values inside the linked list and the current value in an integer array?
I have tried the ...
0
votes
1
answer
271
views
LLDB Python ReadMemory returns NoneType
I have a script in Python where I check value of x0 register which is a pointer to some memory address and read memory from there. But in my Python script, ReadMemory return None and because of that ...
2
votes
1
answer
226
views
Why does lldb only show "dyld" in each stack frame on macOS Ventura?
I maintain a Python library that's written in C++ (using Pybind11). For the past couple of years, I've been able to debug it just fine with lldb, just by compiling the extension in debug mode (i.e.: ...
0
votes
1
answer
342
views
using continue in LLDB stops the process and throws a SIGSEGV
I'm trying to debug a native C++ App that is crashing using lldb
I also have a sleep(5) at the start of android_main so that I can attach to my app in that time, if that matters
After attaching the ...
0
votes
0
answers
44
views
Error restarting when breakpoint is set in cin function during c++ debugging
#include<iostream>
using namespace std;
int main(){
int a;
cin >> a;
cout << a;
return 0;
}
This is my code. When you apply a breakpoint to the cin function, the ...
0
votes
1
answer
1k
views
Why does CodeLite not open the LLDB or GDB debuggers?
My large application with codelite builds fine with g++ and comes up and runs. When I try to start either LLDB or GDB either something flashes on the monitor and stops or simply just does nothing.
I ...
2
votes
1
answer
8k
views
Completely uninstall VS Code extensions in WSL
I cannot uninstall a certain VS Code extension (CodeLLDB) that is installed in my WSL. If I try with the VS Code GUI after reopening the program the extension is still there. If I try with the console ...
1
vote
1
answer
123
views
Access boost tcp stream object from lldb
I'm trying to print the reference value of std::optional which is from the following type:
boost::beast::ssl_stream<boost::beast::basic_stream<boost::asio::ip::tcp,
boost::asio::any_io_executor,...