Blueprint Breakpoint Not Hit
This is an interesting issue. I have a breakpoint on a OnComponentHit event on a box BP. I have a pawn BP object with a sphere collide with it and it generates an OnComponentHit event and hits my breakpoint. Now, if I copy that pawn BP and name it something else like PawnBPTest and have it run into the box, it hits the breakpoint as well. All as expected.
Then, in the editor I select the box object, copy/paste it and move it somewhere else. I have the PawnBPTest object collide with it. No breakpoint is hit.
What's weirder is that this doesn't appear to be consistent. If I swap these PawnBP's between the objects and run again, sometimes I hit breakpoints, sometimes I don't.
Is this an editor bug, or something I don't realize about Blueprints and instances? I tried selecting "Edit PawnBPTest" in the World Outliner and it brought me to the same Blueprint as the PawnBP one uses, with the breakpoints there. Is there a bug with Blueprints where they sometimes don't hit breakpoints? I hope not, as a developer, I know breakpoints are vital!
asked Feb 06 '16 at 11:37 PM in Blueprint Scripting
Hey Elbryan thanks for the info. I used it to find a solution to my problem. (This isn't really an answer, more just a confirmation to the answer your colleagues provided to you, and you to us.)
tl;dr Yes, it appears the debug filter is the way to get it to break on specific objects (copied or not) or classes.
In my case I wanted to debug problems with the base class. In order to do that I needed to set the Debug Filter for the base class to "No Debug Object Selected". Here's a ss of it:
As you assumed, it seems to pick 1 default instance, possibly by alphabetic order, or order of placement in the world. (In your case you said sometimes it hits, sometimes it doesn't. I've seen that before too. I don't have it happening right now, but I'd imagine that if I set the filter to the exact object I want to debug that it'll probably hit 100% though.)
Regardless, thanks to you blueprint breakpoints are less of a mystery. Thanks for the help.
Follow this question
Once you sign in you will be able to subscribe for any updates here