DayZ Debug Port is an unofficial project for DayZ modders to enable debugging outside the Workbench app that ships with DayZ tools.
🔧 Initial setup
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.
Setup Recompile on Host (Ctrl+F7)
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.
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.
(YouTube) VSCode DayZ Debug Port Quickstart Guide
🧩 VSCode Extension
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+F7 shortcut 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.