to be clear <@U06N1KAUCUV> the debugging notion se...
# daft-dev
a
to be clear @Kevin Wang the debugging notion seems to just be with Rust, right? not py & Rust.
did you get debugging to be working with python & Rust at same time?
or did I misunderstand
k
So if you do things like set breakpoints in rust code and then run python code that goes through that rust code path, it will work. But it won't help you debug python code. For that you can just use the vscode python debugger
a
ok cool
yea I only need rust debugging
👍 1
how do you run then? do you just use lldb command directly?
cause can't do
alternatively think you could connect remotely somehow
which is what the other guy was talking about but i havent managed to get working yet
k
idk about the remote thing. you can either run lldb directly in the command line and not use vscode at all, or go to the debug tab on vscode, choose the right launch config, and then click on the button next to "Run and Debug"
Screenshot 2024-09-26 at 11.29.17 AM.png
Copy code
{
            "type": "lldb",
            "request": "launch",
            "name": "pytest",
            "program": "${workspaceFolder}/.venv/bin/python",
            "args": ["-m", "pytest", "tests/integration/iceberg/test_partition_pruning.py", "-k", "test_daft_iceberg_table_predicate_pushdown_on_timestamp_column", "-m", "integration"],
            "cwd": "${workspaceFolder}",
            "preRunCommands": [
                "settings set target.load-cwd-lldbinit true"
            ]
        },
a
@Kevin Wang did you have to disable SIP?