dotnet / LLVMSharp

LLVM bindings for .NET Standard written in C# using ClangSharp
MIT License
844 stars 97 forks source link

How to debug native code? #220

Open Stefan-J-Hanke opened 11 months ago

Stefan-J-Hanke commented 11 months ago

Hi,

we are struggling with exceptions inside the native code, so I'd like to debug in the llvm native code to see what's going on.

How do I do that?

Unfortunately LLVM still does not allow to compile a dynamic library using the msvc toolchain. I don't want to dabble with mingw if I can avoid it. I found some other posts that hint that the creation was part of this repository but now it's not there anymore (https://github.com/dotnet/LLVMSharp/blob/v5.0.0/tools/GenLLVMDLL.ps1)

Please pardon in case I didn't see the obvious.