TommySoucy / H3MP

A mod for Hotdogs, Horseshoes and Handgrenades that adds multiplayer to the game.
GNU General Public License v3.0
52 stars 7 forks source link

Get debug to work #79

Closed TommySoucy closed 1 year ago

TommySoucy commented 1 year ago

https://h3vr-modding.github.io/wiki/creating/scripting/debugging.html

TommySoucy commented 1 year ago

On build we want to debug:

Debug folder should have the pdb2mdb executable Drag H3MP.dll to generate debug symbols Put both H3M.dll and .mdb files in plugins folder

TommySoucy commented 1 year ago

To debug with dnSpy:

Replace game's h3vr_data/mono/mono.dll with the one for version 5.6.3 found in Unity-debugging-5.x.zip from Debug output folder Launch game In dnSpy, go to Debug > Start Debugging Select Debug Engine "Unity (Connect)", leave other fields at default, click OK Load game's assembly and H3MP.dll

Can debug the code from there, breakpoints were tested and worked.