dev.DebuggingPlayer - tooll3/t3 GitHub Wiki
Sometimes it's necessary to debug an exported player executable. Currently the setup of this is a bit wonky, because normally...
Player.exe
is copied from release buildOperators.dll
is generated in release build- the exported
Export/Operators/
folder only contains a subset of all symbols - the default startup directory for Player is not easily adjustable so all required resources are found with relative paths.
This setup works for me with Rider:
-
Switch to Debug mode
-
Rebuild solution
-
Start T3
-
Export
-
Exit T3
-
In startup configurations adjust the startup folder and add
--windowed true
argument. -
Temporarily rename (or move)
Operators/
→_keepOperators/
-
Move everything from
Export/
one up into the project folder. -
Move
Player/bin/release/.net6.0-windows/Player.exe
→ to your project folder. -
In Rider switch to Player project:
-
Start Debug
-
You now can set break points and execution stops nicely at exceptions so you can check variables within the call stack.
I assume the setup is similar with Visual Studio.