DayZ Debug Port is an unofficial project for DayZ modders to enable debugging outside the Workbench app that ships with DayZ tools.
To have the game connect to the DayZ Debug Port, you'll need to run the DayZDiag_x64.exe executable instead of the vanilla DayZ_x64.exe binary. Once the game runs, it will auto-connect to the extension.
For Recompile on Host (Ctrl+F7) to work, you'll need to run DayZDiag_x64.exe with -filePatching flag and setup shortcuts from the game's installation folder to the projects to enable filePatching on as explained in DayZ: Modding Basics - Preparing FilePatching.
Here's an example command to create a shortcut:
mklink /J "DayZInstallationFolder\FirstMod" "P:\FirstMod"
NOTE: Recompile only reloads the code! If your recompiled code doesn't run make sure it isn't something that runs once on game startup / mission startup / player connection.
- Active Game Connection: Maintains a connection to the game with realtime notifications for game connections, game exit and game crashes.
Also an output channel for the debug port logs themselves.
- Live Logs: Output channel for logs from the connected game, streamed live.
-
Code Exec: Convenient window with script input to execute on the connected game.
-
Recompile on Host: Same old
Ctrl+F7shortcut to recompile files loaded by the game. Loaded files are colored and makred with a Z badge beside their filename in the explorer and editor. Right click in the explorer also allows recompiling the file.
- And other commands: Plugin is as versatile as possible.
The foundation for this extension is the Python package that can connect to the game and talk to it in the right protocol.
This package is bundled as an exe with the extension and talks to it using a websocket. The package also has a debug console that provides lower-level access to the functionality exposed via the VSCode extension.






