Skip to content

yuvalino/dzdbgport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DayZ Debug Port

image Discord

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.

dayzdiag

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.

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.

(YouTube) VSCode DayZ Debug Port Quickstart Guide

VSCode DayZ Debug Port Quickstart Guide

🧩 VSCode Extension

  1. Active Game Connection: Maintains a connection to the game with realtime notifications for game connections, game exit and game crashes.

statusbar

Also an output channel for the debug port logs themselves.

  1. Live Logs: Output channel for logs from the connected game, streamed live.

logs

  1. Code Exec: Convenient window with script input to execute on the connected game.

  2. 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.

sidebar

  1. And other commands: Plugin is as versatile as possible.

cmdpallette

📟 Python Package & Debug Console

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.

console

About

Unofficial DayZ debugging tool for VSCode and development package in Python

Topics

Resources

License

Stars

Watchers

Forks

Contributors