Pending Review

Debugging in Bolt

John Grey 3 years ago updated by Stefan Maton 3 years ago 2

When I get an error without Bolt, I can double-click on it and it will take me to the code where it occurs. However, with Bolt I don't seem to be able to find it so easily. There's no section in the manual about debugging, that I can find. Is there any guide on debugging errors with Bolt? Please respond.

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):
Pending Review

Hi John!

I'm aware of the issue, and new features are planned in v.1.8 on the roadmap to fix it.

The problem is that the Unity console is limited: you can link a GameObject to an error (which Bolt does already), but there is no API to link to anything more specific (for example, a node in a graph). The only way to go around this would be for Bolt to have its own console window with more powerful callbacks. It's not a minor feature, which is why it hasn't been implemented yet.

In the mean time, clicking on the error should select the game object on which it occurred. Then, look for red nodes in your graphs and dig down until you find your error.

Break points are really, really needed... it's such a stuggle to "visually debug"...