Questions tagged [codelldb]

16 questions
16
votes
1 answer

How to view the contents of a vector of tuples when debugging in LLDB?

I'm using Visual Studio Code and the LLDB Debugger (CodeLLDB vadimcn.vscode-lldb) for programming in Rust. When using Vec I can see all values in a list (until a limit of > 10000): When using a vector of tuples (Vec<(u64, u64)>), I can't see…
kaiser
  • 940
  • 1
  • 10
  • 25
4
votes
1 answer

How to debug Rust and WebAssembly program with VSCode and CodeLLDB?

I am writing Rust and WebAssembly program. I wanted to debug Rust and WebAssembly program with VSCode and CodeLLDB, but I got an error. I can debug simple Rust program, but fail to debug Rust and WebAssembly program. Steps to reproduce the error are…
Hisashi
  • 43
  • 4
4
votes
0 answers

How do I setup CodeLLDB to debug a Rust executable called from a Java process?

I have a small Rust program that reads and writes to stdin and stdout. This Rust executable is to be called from and interact with a Java program. The Java program is started from the command line like this: java -jar ${pathToJar}…
snowfrogdev
  • 5,963
  • 3
  • 31
  • 58
1
vote
0 answers

How to setup debuging for rust in VSCode

So I am trying to get learn me some rust as part of this year's advent of code challange. I have this setup: https://github.com/pschoffer/AdventOfCode/tree/master/2021 So each day is one subsubfolder. When I am inside some directory say: cd 2021/02.…
Pavel Schoffer
  • 492
  • 1
  • 3
  • 11
0
votes
0 answers

When debugging Rust unit tests in vscode on MacOS, the breakpoints don't trigger

I am trying to debug a set of Cucumber Rust tests in Visual Studio Code. I think that I've figured out how to configure launch.json and tasks.json to allow me to test only one test at a time. However, the debugger is completely ignoring my…
Catomancer
  • 33
  • 3
0
votes
0 answers

for Rust Vec of structs while debugging in VSCode

I have a Vec of next Node Structs in Rust. When debugging in VSCode with CodeLLDB and I look into the variable I see: Local node: {next(130): vec![{...}, {...} ... next(130): vec![{...}, {...}, ... : :…
pms1903
  • 41
  • 3
0
votes
0 answers

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:49.215Z (2 days ago) Electron: 22.5.7 Chromium:…
ClementWalter
  • 4,814
  • 1
  • 32
  • 54
0
votes
0 answers

How to use codeLLDB to view the content of vector in c++, or implement pretty-printer?

When I use codeLLDB to debug a c++ program in visual studio code, I want to know the content of a vector. But codeLLDB will only display address information. By searching for information on the Internet, I found that gdb can realize this function…
newbie
  • 1
0
votes
1 answer

Weird behavior of CodeLLDB when debugging C++ coroutines

As far as my experience goes, a breakpoint on a given line of code means that the first time the debugger breaks on that line, nothing of that line has been executing yet. Or, in other words, when the debugger stops at a breakpoint, it stops there…
Enlico
  • 23,259
  • 6
  • 48
  • 102
0
votes
0 answers

Debug Swift on Windows using Visual Studio Code

I would like to also develop applications using Swift on my windows machine but unfortunately, the Codelldb extension does not display variables during debugging. Is there anyone who manged to get it working? I also tried Swift's bundled LLDB…
0
votes
0 answers

No LLDB Debugger in Codeline In MacOS Environment

I have a MacOS. On Xcode, I have lldb. However, when there is no LLDB option in Codelite despite using a MAC. Why? How do I get back lldb? Thanks a lot. I looked into settings--> GDB Settings but only found GNU debugger and pre-defined types which…
0
votes
1 answer

what does AOSP lldbclient.py generated lldb script sourceMap key "/b/f/w" mean?

aosp have a python script lldbclient.py, which can start lldb server, and create a vscode launch configuration setting supported by codelldb extension. This generated configuration like this: { "name": "(lldbclient.py) Attach surfaceflinger…
0
votes
1 answer

Cannot open shared library when debugging with CodeLLDB

I am working on a proof-of-concept app, written in Rust, with the end goal being to produce a shared library (.dll/.so) callable via C ABI from a number of other languages (C++, C#, etc). I have two simple components; poc is a Rust console app,…
superstator
  • 3,005
  • 1
  • 33
  • 43
0
votes
1 answer

VSCode Rust debugging with lldb and cppvsdbg panics at "NotFound" message

Trying to debug my program written in rust with lldb and cppvsdbg, and after executing a function, that supposed to return either tuple of Result(Protocol, Value), or Box it throws this panic: thread 'main' panicked at 'called…
Xeizzeth
  • 441
  • 1
  • 3
  • 10
0
votes
1 answer

How do I debug a Rust executable that uses a shared library?

My current crate (X) I wish to debug uses another library crate of mine (Y), which loads a C shared library with Rusts ffi. The executable from crate X work fine, I can even debug it fine using GDB. However, when I want to debug the executable in…
DaPurr
  • 69
  • 5
1
2