I found few resources online which may have lead me astray, as I can’t get even basic functionality out of LLDB.

I used the dotnet-sos tool to supposedly automatically load SOS into LLDB and I attached LLDB to my program’s process, but I am getting errors when trying to use any command:

error: 'bpmd' is not a valid command.
error: 'clrstack' is not a valid command.

Its behaving as if SOS isn’t installed, I think? I really don’t know what is going on, searching for these errors gives me nothing which is insane, usually there would be GitHub issues or Stack Overflow posts. I think I’m about to never touch C# ever again.

  • terabyterex@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    10 days ago

    its possible. just to make sure, you started a new session after installing dotnet-sso? what is the path in the .lldbinit file?

      • terabyterex@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        10 days ago

        i mean inside the init file, is the fotnet-sdo path right? i think the init file isnt loading it correctly

          • terabyterex@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            10 days ago

            wait - does the plugin load have the path you used in your manual call to get it working? it needs to mimic that call

              • terabyterex@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                10 days ago

                ok here is my last swing. your init file isnt being called. are you running lldb with sudo? try running with out sudo (if you erte) but , put an echo statement in the init file like “init test” to make sure its being called.

                • dr_robotBones@reddthat.comOP
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  10 days ago

                  Oh that makes sense, yeah I’ve been running it as sudo, I’m pretty sure its looking for the init file in /usr then. I’ve had the same problem with vim in the past.