added option to start the debugger in paused,
fixed a bug where the draw function was defined but it wasn't a generator function