# mexdebug

## Purpose

Enable MEX-file debugging.

## Synopsis

    mexdebug ('on')
    mexdebug ('off')
    mexdebug ('stop')
    mexdebug ('print')

## Description

`mexdebug` `('on`') enables MEX-file debugging. To use this option, first start MATLAB from within a debugger by typing

    matlab -Ddebugger

where `debugger` is the name of the debugger.

`mexdebug` `('off')` disables MEX-file debugging.

`mexdebug` `('stop`') returns to the debugger prompt.

`mexdebug` `('print'`) displays MEX-file debugging information.

## See Also

    debug

(c) Copyright 1994 by The MathWorks, Inc.