# How to stop a p5js script from looping print()

**URL:** <https://discourse.processing.org/t/how-to-stop-a-p5js-script-from-looping-print/34705>\
**Category:** Beginners\
**Created:** [January 18, 2022, 2:37am UTC](https://discourse.processing.org/t/how-to-stop-a-p5js-script-from-looping-print/34705 "2022-01-18T02:37:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruimao96](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@Ruimao96](https://discourse.processing.org/u/Ruimao96)\
**Post date:** [January 18, 2022, 2:37am UTC](https://discourse.processing.org/t/how-to-stop-a-p5js-script-from-looping-print/34705/1 "2022-01-18T02:37:01Z")

</div>

so I accidentally put print() in my script and it start trying to save the picture nonstop. How do I stop this? of course I know how using noloop can make draw only run once, but that is not my question. If the saving tab keeps pop out, I can never click the stop botton to stop the script, or edit the script. It seems like a stupid bug. it has to be a way to stop this.

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [January 18, 2022, 3:55am UTC](https://discourse.processing.org/t/how-to-stop-a-p5js-script-from-looping-print/34705/2 "2022-01-18T03:55:50Z")

</div>

print() has to have something inside of the parentheses, eg print(“hello”); If there is nothing in there it will give you the print dialog.
