title: how to print stack trace to stdout in java for debug?
body: <p>I am new to java.</p>
  
  <p>I want something like debug_print_backtrace in java.</p>
  
  <p>I want to print current stack trace to stdout or to intellij idea log window for debug.</p>
  
  <p>I used to use debug_print_backtrace in php to find some stack infos in runtime for debug.</p>