vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.52k stars 245 forks source link

Step-into behaves as step-over #952

Closed new-TonyWang closed 1 year ago

new-TonyWang commented 1 year ago

OS: ubuntu22.04 wsl and ubuntu22.04 on a x86_64 server VSCode version: 1.77.2 CodeLLDB version: 1.9.2 Compiler: gcc Debuggee: python3 native lib (such as tvm) lldb-version: 16.0.0-custom

lldb always step over function calls, whether using the step-into button in the debug panel or using the "step" command on the command line. I cannot jump into the function, but it can stop at the breakpoint in the function.

these are my launch.json

        {
            "type": "lldb",
            "request": "launch",
            "name": "lldb test_conv2d",
            "program": "python3",
            "args": [
                "-m",
                "pytest",
                "-v",
                "test_conv_my.py"
            ],
            "cwd": "${workspaceFolder}/tests/st/ops/mytest",
            "env": {"LD_LIBRARY_PATH":"some ld path",
                    "PYTHONPATH":"some python path",
                },
                "initCommands": ["settings set target.process.thread.step-avoid-regexp ''"]

        } 
vadimcn commented 1 year ago

Does it work in CLI lldb?

new-TonyWang commented 1 year ago

you mean using lldb in command line?

new-TonyWang commented 1 year ago

I have tried to use lldb to debug python native lib in command line and it also step over function calls.. Is it possible that this is a bug of lldb ?

vadimcn commented 1 year ago

Not sure if lldb bug or if something's wrong with your debug info.
In any case, I don't think this is caused by this extension.