Skip to content


.NET debugger and assembly editor




How to attach dnSpy to Bannerlord and catch the exception

  • Launch the Bannerlord launcher (not the game itself!)
  • Run dnSpy
  • In dnSpy, choose the command Debug - Attach to process...
  • Select the process corresponding to Bannerlord, then click Attach to confirm
  • If all goes well, you will see a "Running..." status confirming that dnSpy is attached to the Bannerlord process
  • Start the game. Play until a critical error occurs
  • You will see an error message on the screen

Source with pictures here by LogRaam

Not working breakpoints

In the module's .csproj file make sure you have


and not


or anything else. Recompile and should be ok.

Crash on the game start

Crash only when attached to the dnSpy.

The cause is RTS Camera mod. Disable it and game will start.