I am able to set breakpoints in the EventGraph of the AnimInstance Editor, and they fire for native events like KismetUpdateAnimation and nodes that fire as a result of these events. However, breakpoints assigned to custom Interface events or anything that fires as a result of an Interface event is not triggered. I know for sure the code (or nodes rather) is running, it just won’t stop when it hits a breakpoint.
Hi James,
As far as I’m aware, there shouldn’t be any issues with breakpoints on events. My guess is that you aren’t seeing the breakpoints trigger because the object being debugged is set to the Persona preview instance, and not a live instance in your PIE session. The preview instance is never going to get the messages sent to it, so they’ll never break.
Can you try launching PIE and then ejecting (F10), then going back to Persona and switch which object is being debugged (the drop-down on the toolbar)? Once you’ve done that, you can resume play and your breakpoints should hopefully fire.
Cheers,
Michael Noland
That worked, thanks! It’s strange to me though, that breakpoints on the built in events like KismetUpdateAnimation fire without going through that, but the interface event breakpoints only fire once I set the debug object. Anyways, thanks!
Hi James,
It’s because by default the object being debugged is the preview instance in the viewport, which is still getting the regular events like KismetUpdateAnimation.
Cheers,
Michael Noland
Alright, that makes sense to me! Thanks