shopt-option

extdebug

Enables debugger-oriented behavior including inheritance and extra function metadata, and can affect execution through DEBUG traps. This probe checks only the toggle; not a full debugger test.

Formal Syntax & Structure

bash syntaxbash
shopt -s extdebug

Return Value

exit status

Enables debugger-oriented behavior including inheritance and extra function metadata, and can affect execution through DEBUG traps. This probe checks only the toggle; not a full debugger test.

Working Example

Example Snippetbash
shopt -s extdebugshopt -q extdebug && printf 'enabled\n'shopt -u extdebugshopt -q extdebug || printf 'disabled\n'
Bash Reference