Debugging C/C++ Shared assembly from .NET 5

Sysprogs forums Forums VisualGDB Debugging C/C++ Shared assembly from .NET 5

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30378
    zeroaviation
    Participant

    Hi all,

    Device: STM32MP1 running Linux (STM distro). The device is remote, and everything is dover via SSH and SCP.

    Main application is written/running in .NET 5

    I used VisualGDB to create (and deploy) a Shared Library (.so)

    I reference this shared library from the .NET application and calls work great.

    The question is how can I setup VisualGDB to debug the Shared Library when called from the dotnet app via P/Invoke?

    Thanks in advance!

    Matt

    #30382
    support
    Keymaster

    Hi,

    You can simply override the path to the main executable via VisualGDB Project Properties -> Debug Settings so that VisualGDB will launch the .Net runtime with the correct parameters. As long as the library is loaded into the same address space, you should be able to debug it.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.