I have a .Net Core (ver 8.0) multiproject solution which uses a native library on linux (.so).

When I start the project with debugger on, the program exits with code 0 and without any messages when hitting the line which loads the library.
Without the debugger, it runs without issues.

So does somebody know how I can get debugging to work?