You can arrange for an error in your application to automatically produce a core dump.
Restriction:The following applies to native code only.
Debugging using a core dump When an application crashes or when you programmatically invoke a core dump, you can arrange for its state to be saved to
a core file. You can use this file to debug failing programs as it contains details of where any errors occurred in the source
code, the contents of memory at the time of the error, and the values of any variables and expressions set at the time.
core_on_error Specifies in what circumstances a core file is produced.
core_filename Specifies the name of the file that is generated when the core_on_error tunable is set to 3.