How to utelize the debug.break node ?

Hi,

I’m trying to understand the break node. As far as I can tell; the break is activated at the end of an event. See below samples. Working with loops this doesn’t allow me to read all iterations of a variable, unless I add log nodes on every variable I’d like to read. Working with log nodes is a little tedious though. Is there anyway to break midway a graph/function?

I’m using Unity 2021.3.0.

Thank you kindly for any help!

Examples:

Below sample prints both “0” and “1”, then it breaks. I want it to print “1”, break, print “2”, break, etc.
8159108--1060598--upload_2022-5-26_17-31-47.png

This sample prints “0”, “1”, “2”, “end”, then it breaks. I want it to print “1”, break, print “2”, break, etc.
8159108--1060604--upload_2022-5-26_17-35-34.png

Yeah, the debug break node will only pause after the frame is done… You won’t be able to use it to break for an item in a loop.

It is part of our huge backlog of missing things…

1 Like

Ow, right! Thanks for your prompt reply Eric! Much appreciated!

I’m using a (silly) workaround now with a coroutine. Not exactly a Break Point. But here it is for anyone who is interested.