<type>documentation</type>
<domain>debug</domain>
<id>debug-properties</id>
<title>Debug Environment</title>
<date>$Date$</date>
<version>$Revision$</version>
<product>per+</product>

The Python executable that should be used for debugging, and environment like ``Python
Path`` and starting directory, are specified in `Project Properties
<ref:proj/project-properties>`__ in the ``Project`` menu.

**Per-File Environment**

In cases where different debug environments are needed for different files, use `File
Properties <ref:proj/file-properties>`__ for each file to specify a `Launch
Configuration <ref:proj/launch-configs>`__ to use with that file.

If different debug environments are needed for different launches of the same file, set up
a `Named Entry Point <ref:debug/named-entry-points>`__ instead.

**Command Line Arguments**

Command line arguments to use when debugging a file can be set using ``Debug Environment``
in the ``Debug`` menu, under the ``Debug`` tab of `File Properties
<ref:proj/file-properties>`__ for the file, or by defining a `Named Entry Point
<ref:debug/named-entry-points>`__.

**Unit Testing Environment**

The environment to use for files when they are debugged as unit tests by the `Testing
<ref:testing/index>`__ tool is instead set under the ``Testing`` tab of `Project
Properties <ref:proj/project-properties>`__ or `File Properties
<ref:proj/file-properties>`__.

