multproc subcommand for dbx: Enable or disable multiprocess debugging

Format

Description

The multproc subcommand alters the way dbx behaves when the process that is being debugged issues a fork() runtime call. By default, multiprocess debugging is disabled when dbx is started.If no options are specified, the multproc subcommand returns the current status of multiprocess debugging.

Options

on
dbx will notify the user that a fork has occurred, provide the PID of the new child process, and follow the parent process.
off
dbx will ignore any forks that occur.
parent
dbx will notify the user that a fork has occurred and follow the parent process.
child
dbx will notify the user that a fork has occurred and follow the child process.

Usage notes

Examples

  1. To check the current status of multiprocess debugging, enter:
    multproc
  2. To have dbx notify the user that the process being debugged has forked, enter:
    multproc on
  3. To have dbx ignore all forks by the process being debugged, enter:
    multproc off

Related information

The fork() function.