UnityDoorstop implementation with Harmony patch that converts .pdb to .mdb, allowing mono to read debug symbols.
This theoretically is applied to almost any Unity version. Manually tested and developed for 2020-2021 Unity versions.
- Run
./build.ps1
on Windows or./build.sh
on Linux/MacOS.
- Open solution
UnityDebug.sln
. - Select your configuration(Win/MacOS/Linux).
- Select your platform(x64/x86) or AnyCPU if you already installed UnityDoorstop.
- Build project.
- Copy contents of (Project Directory)/build/(Configuration)_(Platform)/ to the root of the game.
- Set breakpoint wherever you want in the code in your IDE(Visual Studio/JetBrains Rider/VS Code) or Decompiler(dnSpy).
- Start the game.
- Attach debugger to the port 56000(default port).
- Wait or interact with the game until it steps on the breakpoint.