This is an automated archive made by the Lemmit Bot.

The original was posted on /r/rust by /u/KlausWalz on 2025-04-25 11:21:33+00:00.


Hello ! Rust is the first language with which I work on back-end high performance application. We are currently encountering a stack overflow problem on a remote machine, and one idea I got was to investigate the stack during integration test execution to maybe know which struct is “too big” (we have no recursion and neither infinite loops since the program never failed somewhere else than that specefic red hat machine).

However, I was never successfull to debug my program, I am almost forever giving up on debuggers. I tried LLDB with rust rover, with vsode and on terminal, nothing works, the breakpoints always get skipped. Almost every tutorial on this topic debugs very simple hello world apps (which I could debug too !) but never a huge monorepo of 15 nested projects like mine.

Currently, I am working with VSCode + LLDB, and the problem is that wherever I set my breakpoints, the program never stop, the test executes as if I did nothing. Can you please help me or at least send me a guide that can teach me how to setup correctly a debugger for a huge project ? For info, this is the task in tasks.json that I use to run my test :


    {
        "type": "lldb",
        "request": "launch",
        "name": "Debug test_integration",
        "cargo": {
            "args": [
                "test",
                "--no-run",
                "--lib",
                "--package=my_client"
            ],
            "filter": {
                "name": "my_client",
                "kind": "lib"
            }
        },
        "args": [
            "memory_adt::tests::my_test",
            "--exact",
            "--nocapture",
            "--test-threads=1"
        ],
        "env": {
            "RUST_BACKTRACE": "1"
        },
        "cwd": "${workspaceFolder}"
    },