1.1.2 Startup files (.pydbrc)

If a file .pydbrc exists in the user's home directory or in the current directory, it is read in and executed as if it had been typed at the debugger prompt. This is particularly useful for aliases. If two files exist, the one in the home directory is read first and aliases defined there can be overridden by the local file. Finally you can specify a command file to be read when invoking pydb and this is run last. See 1.1.1 for information on how to run a command file.

Sometimes you may not want to run a startup file. For example, you may have a special installation script that uses the debugger and want to make sure a user's profile doesn't get in the way. See the "--nx" command option, 1.1.1.

For tracking down problems with command files, see the "set trace-commands on" debugger command, 1.2.3. To run a debugger command script inside the debugger see the "source"command, 1.2.12.

See About this document... for information on suggesting changes.