VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Fortnite›Verse Language·Up to Fortnite · Verse Language·35 of 570 in Verse Language

Debugging and Troubleshooting in Verse

When things don’t work as you expect in your Verse code, sometimes it's hard to understand what went wrong. For example, you can encounter:

  • Runtime errors.
  • Code executing in the wrong order.
  • Processes taking longer than they should.

Any of these can cause your code to behave in unexpected ways and create problems in your experience. The act of diagnosing problems in your code is called debugging, and there are several different solutions you can use to fix and optimize your code.

Verse Runtime Errors

Your Verse code is analyzed both as you write it in the language server and when you compile it from the editor or Visual Studio Code. However, this semantic analysis alone can't catch all the possible problems you can encounter. When your code executes at runtime, you may trigger runtime errors. These will cause all further Verse code to stop executing, which may make your experience unplayable.

As an example, suppose you had some Verse code that did the following:

|  |  |
| --- | --- |
|  | # Has the suspends specifier, so can be called in a loop expression. |
|  | SuspendsFunction()<suspends>:void={} |
|  |  |
|  | # Calls SuspendFunction forever without breaking or returning, |
|  | # causing a runtime error due to an infinite loop. |
|  | CausesInfiniteLoop()<suspends>:void= |
|  | loop: |
|  | SuspendsFunction() |

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games documentation

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in Verse Language · 35 of 570
Prev
debug your game with debug draw in verse
Next
defer in verse
Browse all files in this folder (A–Z)

Source

Epic Games documentation

View original

Last updated 2026-05-12T21:55:29.509605+00:00

VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

🦜

Scout · your island guide

The Isle of Verse