How To Print a Stack Trace Without Debugging Code (Doc ID 409112.1)

Last updated on AUGUST 04, 2016

Applies to:

Oracle JDeveloper - Version: 9.0.4.0.0 and later   [Release: and later ]
Information in this document applies to any platform.

Goal


It's often interesting to debug code and check the Stack Trace when diagnosing an issue.
However, it's not always easy or possible to reproduce and debug an error in a Production environment.

This note shows Java code that can be used to print a Stack Trace when executed.
It can be used to diagnose when some part of your application code is executed, and what is the execution stack.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms