- `dbstack`
- `S = dbstack ()`
- `S = dbstack (N)`
- `S = dbstack ("-completenames")`

Display or return information about the current call stack.

When an output is requested, return a structure array containing information
such as function name, file name, and line number for each stack frame.

See also: `mfilename`, `dbwhere`.

### References

- https://www.mathworks.com/help/matlab/ref/dbstack.html
- https://octave.sourceforge.io/octave/function/dbstack.html
