Debugger Options
The debugger
supports the following options. These options should be specified
after the idebug command, but before the name of the
program you want to debug. For example, to debug the
program myprog.exe using the /p- option, use the following
command line:
idebug /p- myprog.exe
- Option
- Purpose
- /a process_id
- Attach to the already running process process_id.
Note that you cannot attach to an already running process
on OS/2.
- /c child_process_id
- Start debugging the specified child process of the
program being debugged. This option only applies to
debuggee programs running on OS/2, and is ignored on
other platforms.
- /h or /?
- Display help for the idebug command.
- /i
- Start the debugger in the system initialization code that
precedes the call to the main entry point for the
program. (C++ only): This can be useful if you need to
debug the constructors for static class objects.
- /p+
- Use program profile information (this is the default). If
the debugger has saved a profile containing information
on window, breakpoint, and monitor settings from a
previous debug session for this program, the profile is
used to restore those settings.
- /p-
- Do not use program profile information. The debugger
ignores any program profile information, and opens the
debugger in a default appearance with no breakpoints set
and only the Session Control window and one Source
window.

Attach to a Process