Debugging - Vaei/Vigil GitHub Wiki

Logging

Vigil's task flow can be output to the output log using: Log LogVigil Verbose Log LogVigil VeryVerbose

Learn how to use the output log to debug Vigil

Drawing Results

You can draw Vigil results to the screen using Vigil Draw Debug Results

UnrealEditor_2025-04-23_12-54-26

Learn what the indicator information means here

Debug Drawing

[!TIP] You can see these in action here All Vigil commands are prefixed with p.Vigil so let auto-complete show you what is available

p.Vigil.Selection.Debug draws the shape, by default a Cone, that shows the traces used to find our targets

p.Vigil.Filter.Debug draws the trace, by default a Line, that shows the traces used to filter our Line of Sight

p.Vigil.Scan.Debug simply prints the last number of targeting requests sent to the targeting subsystem to the top-left corner of the screen

Visual Logger

[!IMPORTANT] Visual Logger is a powerful tool that allows us to rewind events over a timeline Both server and client information is displayed on separate tracks in the Visual Logger Visual Logger is the best way of detecting discrepancy between Server and Client Any prediction issues you are encountering with Vigil should be diagnosed this way

To print Vigil data to the Visual Logger, run this very familiar yet different node Vigil Add Visual Logger Results from your Event OnVigilTargetsReady

UnrealEditor_2025-04-23_13-09-03

Open the Visual Logger:

image

Play-In-Editor and hit the Start button. Ensure the Vigil [VV] option is enabled or you won't see the results.

image

And now, simply play, focus on things. Notice the Visual Logger tracks filling with data. When you have enough data click Stop.

Now you can scrub back and forth through the Visual Logger track to see what Vigil did and when, for both the client and server.

image