debugging Java synchronization

后端 未结 2 1247
臣服心动
臣服心动 2021-01-04 06:56

Is there any mechanism within the Eclipse debugging environment to see the state of synchronization locks held and processes waiting?

2条回答
  •  醉话见心
    2021-01-04 07:29

    You can show the state of object monitors in Eclipse's debugger. You can find a short, clear tutorial here. For each thread, Eclipse can show you the monitors the thread owns and those it is waiting for.

提交回复
热议问题