Forum Archive

Access the Console while script is running

ruimac

Is there any way to access the Console while the script is running?
I usually print stuff to the console while debugging or checking for logical errors.
But it is a pain having to stop the script to check out the console output.

JonB

Not for scene modules, but for everything else, yes.
You can drag near the top to switch between editor and console. For ui modules, presenting in a panel on ipad allows you to swap back and forth easily.

Sebastian

@JonB Building on that, it is possible to do the same with the scene module by presenting it with a scene.SceneView instead of using the scene.run function.

ruimac

I have a script that creates a View that I populate with ui items.
I'm presenting that View with my_view.present('full_screen')
So, I'm getting a full screen with a top bar that has a close button (an X) at the top left.
Is there any way to get to the console in this scenario?

Sebastian

@ruimac Can't you use myview.present('panel') instead?

ruimac

Oh, great!!! I didn't knew that one.
Well, I only have Pythonista for three days now (and I already coded a large script).
I just have to learn some more.
Thank you :-)

Mental note: Use 'panel' while developing and then replace with 'full_screen'. Better yet, make it a global variable and just change it as it is needed :-)