To enable orphaning of a worker process serving an application pool (which keeps failed applications running while your diagnostic tools monitor them), and to attach a debugger to the worker process, you must change the values of three metabase properties. The values of these metabase properties, which are set by running a script, must specified as follows:
Set the OrphanWorkerProcess metabase property to TRUE to notify the WWW service to orphan the worker process when it fails.
Set the OrphanActionExe metabase property to specify an executable to run when the worker process is orphaned.
Set the OrphanActionParams metabase property to configure command-line parameters for attaching the debugger to the worker process. ...