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
You can arrange for the state of an application to be saved to disk in a core dump file when the application crashes. You can then use the dump file to help debug problems, as it indicates where in the source code the error occurred, along with the values of variables, expressions, and the contents of memory as they were at the moment the error occurred.
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.