Tutorial: Debug I/O

Index of All Documentation » Wing Tutorial » Tutorial: Debugging »

Before continuing any further in the debugger, bring up the Debug I/O tool so you can watch the subsequent output from the program. This is also where keyboard input takes place in debug code that requests for it.

Once you step over the line PrintAsText(news) you should see output appear as follows:


For code that tries to read from stdin or uses input (or in Python 2.x raw_input), the Debug I/O tool is where you would type your input to your program. Try this now by stepping over the PromptToContinue call. You will see the prompt "Press Enter to Continue" appear in the Debug I/O tool and the debugger will not complete the Step Over operation until you press Enter while focus is in the Debug I/O tool.

Note that you can also configure Wing to use an external console from the Options menu in the Debug I/O tool. This is useful for code that depends on details of the Debug I/O environment (such as cursor control with special output characters).