2016-08-03 66 views

回答

0

只是使用(new RuntimeException).getStackTrace(不需要拋出異常)。

0

您可以使用Ctrl-\運行傾倒,如:

println("Hello") //Use Ctrl -/to run 
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.71-b15 mixed mode): 
"process reaper" #28 daemon prio=10 os_prio=31 tid=0x00007ff35f8ad000 nid=0x130f waiting on condition [0x00007000000be000] 
    java.lang.Thread.State: TIMED_WAITING (parking) 
    ...