# \[Bug\] Debug trace lines never disappear from viewport

**URL:** <https://forums.unrealengine.com/t/bug-debug-trace-lines-never-disappear-from-viewport/276508>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** build1627304, unreal-engine, bug-report, UE4, question\
**Created:** [March 11, 2014, 4:02am UTC](https://forums.unrealengine.com/t/bug-debug-trace-lines-never-disappear-from-viewport/276508 "2014-03-11T04:02:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 4:02am UTC](https://forums.unrealengine.com/t/bug-debug-trace-lines-never-disappear-from-viewport/276508/1 "2014-03-11T04:02:10Z")

</div>

**Build** CL1627304 - K:/TURE/Rocket\_CL1627304

**Specs** Windows 7 Professional English, i7-3770K, 32GB RAM, GTX670 4GB driver 306.23 , UAC off

**Description** I added a capsule trace and enabled Draw Debug. That got me some red and green spheres, but upon moving the blue print actor in the level it kept drawing more spheres. Disconnecting/deleting  
the trace did not remove the spheres from the viewport. I had to restart the editor to get rid of them. Likewise with line traces.  
Also, after disabling Draw Debug, it often still continues to draw debug lines anyhow.

**Repro** Add a trace to BP, enable debug, place in level, move it around some. (I’ve been using user construction for it).

 ![debugnotdisappearing.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/7/dc735dd7c2d407ef4dcc1ff8c726572445e4483c.jpeg)

**Results** Get spammed with ever lasting debug lines

**Expected** Some way of getting rid of the lines/time limit.

---

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 4:02am UTC](https://forums.unrealengine.com/t/bug-debug-trace-lines-never-disappear-from-viewport/276508/2 "2014-03-11T04:02:11Z")

</div>

Hi Sjoerd,

I am attempting to reproduce this issue, but having some difficulties. Could you please show me a screenshot of the blueprint’s script? This will help greatly.

Thank you,

Alexander

---

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 4:02am UTC](https://forums.unrealengine.com/t/bug-debug-trace-lines-never-disappear-from-viewport/276508/3 "2014-03-11T04:02:11Z")

</div>

We have a repro and are looking into it! Thanks for the report.

---

<div class="post-metadata">

**Author:** ![gmc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmc](https://forums.unrealengine.com/u/gmc)\
**Post date:** [March 15, 2016, 10:32pm UTC](https://forums.unrealengine.com/t/bug-debug-trace-lines-never-disappear-from-viewport/276508/4 "2016-03-15T22:32:25Z")

</div>

Any news? I can still do this in 4.11 preview 7. I have a trace in the consturct with debug on persistent, so of course it won’t go away, but there should be a way to make them go away since they can get out of hand (move the actor around and I have a ton of red and green lines everywhere) and the only way I know how to remove them is to change the map.

Now you’re probably going to say “well then don’t put it on persistent” but I do want to see them… and putting it on For Duration may not be enough time to look at them all and do what I need to do.

–  
GMC

---

<div class="post-metadata">

**Author:** ![Dr\_Whoop](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dr_whoop/32/608276_2.png) [@Dr\_Whoop](https://forums.unrealengine.com/u/Dr_Whoop)\
**Post date:** [July 13, 2016, 12:41am UTC](https://forums.unrealengine.com/t/bug-debug-trace-lines-never-disappear-from-viewport/276508/5 "2016-07-13T00:41:31Z")

</div>

You can use ‘flushpersistentdebuglines’ in console to clear them

---

<div class="post-metadata">

**Author:** ![Todd.Vance](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Todd.Vance](https://forums.unrealengine.com/u/Todd.Vance)\
**Post date:** [February 11, 2018, 1:45am UTC](https://forums.unrealengine.com/t/bug-debug-trace-lines-never-disappear-from-viewport/276508/6 "2018-02-11T01:45:58Z")

</div>

That works in the console (in 4.18) but not if you “exec console command” in a blueprint for some reason.

---

<div class="post-metadata">

**Author:** ![JadeDoyle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JadeDoyle](https://forums.unrealengine.com/u/JadeDoyle)\
**Post date:** [July 4, 2024, 1:30pm UTC](https://forums.unrealengine.com/t/bug-debug-trace-lines-never-disappear-from-viewport/276508/7 "2024-07-04T13:30:09Z")

</div>

Any development here? 6y later, and it’s driving me crazy…
