### PlayerConnectionConfigFile example for Unity 4.x-5.x and 2017.1 Source: https://github.com/dnspy/dnspy/wiki/Debugging-Unity-Games Create a file named PlayerConnectionConfigFile in the game's _Data directory to enable script debugging for Unity 4.x-5.x and 2017.1. The example shows a listen command with a port and flags. ```text listen 3060108046 1 1 ``` -------------------------------- ### boot.config example for Unity 2017.2 or later Source: https://github.com/dnspy/dnspy/wiki/Debugging-Unity-Games Create a boot.config file in the game's _Data directory to enable script debugging for Unity 2017.2 or later. Only player-connection-debug=1 is required; other lines can be removed. ```text player-connection-mode=Listen player-connection-guid=3060108046 player-connection-debug=1 player-connection-wait-timeout=-1 player-connection-ip=123.45.67.89 ``` -------------------------------- ### Build dnSpy from source Source: https://github.com/dnspy/dnspy/blob/master/README.md Clone the repository recursively and build using the provided PowerShell script. Use the -NoMsbuild flag to skip MSBuild and use dotnet build instead. ```powershell git clone --recursive https://github.com/dnSpy/dnSpy.git cd dnSpy # or dotnet build ./build.ps1 -NoMsbuild ``` -------------------------------- ### Create INI file to disable optimizations for debugging Source: https://github.com/dnspy/dnspy/wiki/Making-an-Image-Easier-to-Debug Create a file named after the DLL (e.g., something.ini) in the same folder as the DLL. The contents enable tracking information and disable optimizations. Save the file without a UTF8 BOM. Apply this to every EXE/DLL you want to debug, not just the main executable. ```ini [.NET Framework Debugging Control] GenerateTrackingInfo=1 AllowOptimize=0 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.