jdb’s print
allows evaluation of expression, but I’m not sure if it’s possible to create new objects that way. Any new
seems to return just null
, e.g.:
Thread-0[1] print new java.lang.String("12")
Thread not suspended
new java.lang.String("12") = null
Any ideas what’s going on there? And is it possible to work around that an still instantiate new objects from within jdb?