How to use external classes in watch expressions in Eclipse, java -
i'm using eclipse debug java application. better display internal structure of object, i've written small class named mytool. want use in watch expression. when add "mytool.deeptostring(this)" watch expression, error message "mytool cannot resolved".
generally, note classes imported in java source code can used in "watch expression". example, if source code contains "import java.net.url", "new url("http://www.msn.com")" can used in watch expression, otherwise, "url cannot resolved type" error get.
because want debug other's program jdk, cannot add "import" sentence in source code. cannot add "import" sentence watch expression. example, if add “import java.net.url”, says "syntax error on token "import", assert expected. "
has met same problem me? in advance.
you should use qualified class names. , think mean expressions view, not watch.
Comments
Post a Comment