Home » Support » Index of All Documentation » Wing IDE Reference Manual » Debugger »

10.1. Specifying Main Entry Point

Normally, Wing will start debugging in whatever file you have active in the frontmost editor. Depending on the nature of your project, you may wish to specify a file as the default debug entry point.

To do this, right-click on one of your Python files in the project manager window and choose the Set As Main Debug File option from the context menu.

This file is subsequently run whenever you start the debugger, except when using Debug Current File in the Debug menu, or when right-clicking on an entry in the project manager and choosing the Debug Selected context menu item.

Note that the path to the main debug file is highlighted in red in the project window. You may clear the default debug entry point with Clear Main Debug File in the project's context menu or main Debug menu.

The main entry point defined for a project is also used by the source code analysis engine to determine the python interpreter version and Python path to use for analysis. Thus, changing this value will cause all source files in your project to be reanalyzed from scratch. See section Source Code Analysis for details.

« 10.0. Quick StartTable of Contents10.2. Debug Properties »