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, you can arrange for its state to be saved to disk, in a core dump file, which can indicate where
the error 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. You can then use the core dump file to help debug the problems.
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.