Hi @nicklczk, you could always use the pdb module, which “defines an interactive source code debugger for Python programs”. To use this, you will need to run your Python script from the command line, and ensure that your PsychoPy window is not running in full screen, otherwise you will not be able to see your console. From your Python script, import the pdb module at the top of your script (or follow example below). Find the location where you wish to add a breakpoint to your script, and add:
import pdb
pdb.set_trace()
When your script reaches the breakpoint, the command console will become interactive. You can evaluate variables, create and manipulate PsychoPy objects whilst the debugger is running. E.g., from the console I can create a new rect, and draw it on screen using:
myRect = visual.Rect(win, size=.5)
myRect.draw()
win.flip() # remember to call winflip, otherwise your changes will not appear on screen.