# Breakpoint in loop hit once

**URL:** <https://forums.unrealengine.com/t/breakpoint-in-loop-hit-once/429578>\
**Category:** Audio\
**Tags:** breakpoint, unreal-engine, loop, Blueprint, question\
**Created:** [July 17, 2018, 4:08am UTC](https://forums.unrealengine.com/t/breakpoint-in-loop-hit-once/429578 "2018-07-17T04:08:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mattlauk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mattlauk](https://forums.unrealengine.com/u/Mattlauk)\
**Post date:** [July 17, 2018, 4:08am UTC](https://forums.unrealengine.com/t/breakpoint-in-loop-hit-once/429578/1 "2018-07-17T04:08:56Z")

</div>

When debugging my blueprint, if I place a break point on a node that is in a loop, it only gets hit once. It runs the loop more than once and I verified this through the execution trace and print string. I’m not sure if this is a bug or setting. If it’s not a setting, I’ll have to submit a bug report.

---

<div class="post-metadata">

**Author:** ![Hustlan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hustlan](https://forums.unrealengine.com/u/Hustlan)\
**Post date:** [July 17, 2018, 7:43am UTC](https://forums.unrealengine.com/t/breakpoint-in-loop-hit-once/429578/2 "2018-07-17T07:43:12Z")

</div>

Can you provide some screenshots?

---

<div class="post-metadata">

**Author:** ![Mattlauk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mattlauk](https://forums.unrealengine.com/u/Mattlauk)\
**Post date:** [July 17, 2018, 5:21pm UTC](https://forums.unrealengine.com/t/breakpoint-in-loop-hit-once/429578/3 "2018-07-17T17:21:48Z")

</div>

I suppose that I could when I get home but it’s not going to give any more information. It’s literally a for loop (0 to 5) off of begin play that calls print string for each iteration. If your looking to confirm that I have it hooked up correctly, it is. It prints the string 6 times but the breakpoint is hit once.

---

<div class="post-metadata">

**Author:** ![Mattlauk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mattlauk](https://forums.unrealengine.com/u/Mattlauk)\
**Post date:** [July 17, 2018, 5:24pm UTC](https://forums.unrealengine.com/t/breakpoint-in-loop-hit-once/429578/4 "2018-07-17T17:24:41Z")

</div>

I verified the engine files last night. Still persists. I guess the next time that I have time, I’ll have to completely remove the engine and reinstall it. If it still continues, I’ll report it as a bug.

---

<div class="post-metadata">

**Author:** ![Hustlan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hustlan](https://forums.unrealengine.com/u/Hustlan)\
**Post date:** [July 18, 2018, 4:31am UTC](https://forums.unrealengine.com/t/breakpoint-in-loop-hit-once/429578/5 "2018-07-18T04:31:22Z")

</div>

Just to be sure. Please, post the screenshot with the node you add breakpoint to

---

<div class="post-metadata">

**Author:** ![IRJayJay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IRJayJay](https://forums.unrealengine.com/u/IRJayJay)\
**Post date:** [December 29, 2022, 6:58am UTC](https://forums.unrealengine.com/t/breakpoint-in-loop-hit-once/429578/6 "2022-12-29T06:58:47Z")

</div>

Having this same issue randomly and I don’t know what the hell is up. Really frustrating trying to debug things when the debugging itself is broken.

---

<div class="post-metadata">

**Author:** ![Pixol20](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pixol20](https://forums.unrealengine.com/u/Pixol20)\
**Post date:** [September 20, 2024, 5:33pm UTC](https://forums.unrealengine.com/t/breakpoint-in-loop-hit-once/429578/7 "2024-09-20T17:33:22Z")

</div>

Weird solution but i fixed it by setting two breakpoints in nearby nodes like this

 ![UEscreen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/a/35a0ab93b0018a7b698149f1cafa5d56374ba85f.png)

---

<div class="post-metadata">

**Author:** ![Pixol20](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pixol20](https://forums.unrealengine.com/u/Pixol20)\
**Post date:** [September 20, 2024, 5:38pm UTC](https://forums.unrealengine.com/t/breakpoint-in-loop-hit-once/429578/8 "2024-09-20T17:38:04Z")

</div>

Oops, i was wrong. It seems that **placing breakpoint on array operation** fixes the issue not placing two breakpoints nearby
