# Debug Console not showing 'Live' Outputs

**URL:** <https://forum.inductiveautomation.com/t/debug-console-not-showing-live-outputs/54503>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [December 28, 2021, 6:21pm UTC](https://forum.inductiveautomation.com/t/debug-console-not-showing-live-outputs/54503 "2021-12-28T18:21:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 28, 2021, 6:54pm UTC](https://forum.inductiveautomation.com/t/debug-console-not-showing-live-outputs/54503/3 "2021-12-28T18:54:03Z")

</div>

Use `system.util.invokeAsynchronous()` to run the function in the background and use a logger from `system.util.getLogger()` instead of print.

And absolutely do _ **not** _ call any component methods from that background thread. More information here:

> [@Update GUI via Asynchronous thread](https://forum.inductiveautomation.com/t/update-gui-via-asynchronous-thread/9666):
>
> I’ve got a script I am experimenting with that can take a lot of time to execute, so I now use the system.util.invokeAsynchronous to run the script in a separate thread to keep the GUI from locking up. I am using the asynchronous thread to copy files from one place to another, and I would like to show the progress of the file copy with a progress bar. How would I go about this? I am importing a few python libraries to do this. import shutil def fileTransfer(): path = system.file.openFile() …

---

_[View the full topic](https://forum.inductiveautomation.com/t/debug-console-not-showing-live-outputs/54503)._
