eclipse watch expression cannot be resolved to a type 表達式 類型無法解析

today I encountered an type resolving of expression in eclipse debuging.

 

1. stop at a break point

2. add watch expression: " a.b.c.Test.class.toString()"

3. evaluate the expression: error occurred: a.b.c cannot be resolved to a type.

 

root cause:

a.b.c.Test is not in the classpath of the project where the debuging stopped at.

類型必須在斷點所在項目的classpath中纔可以。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章