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中才可以。

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐