Eclipse Java Debugger: easier way see values in the debugger that are in nested collections? -


i'm new debugger , eclipse.

i have many situations holder objects, pojos, put collections , collections put other collections.

it becomes cumbersome when debugging loop keep opening many tree nodes see value of particular variable, have turn out not looking, having advance next step,then having open of tree nodes again.

i tried setting "watch" values showed in rest of debugger didn't show there.

i'm not familiar debbugers perhaps misunderstanding concept of watch.

in event, there easy way see particular variable's value when variable nested in several collections or objects, such don't have expand tree nodes each time want see it?

watch you're looking , personal favorite tool.

the rule is, can watch variables in context (i.e. global + local variables, wherever in code)

so if have acollection.get(i).bcollection.get(j).ccollection can view variable long have access acollection in current context.

if not check how can acollection (how related current method).

if in 1 method acollection retreived newvar.getcollection() , in 1 can retreive directly acollection, - can make 2 variables watch:

  1. acollection.get(i).bcollection.(j).ccollection;
  2. newvar.getcollection().get(i).bcollection.get(j).ccollection;

this should make able view ccollection both methods relative ease


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -