I'm looking for a plug-in which displays a 2D array as a table while debugging. It will be great if it allows:
Currently I'm using a utility class whose toString method returns a string like:
0[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
1[ 0, 1, 1, 1, 1, 0, 1, 1, 0, 1]
2[ 0, 0 ...
so while debugging in eclipse I can create an expression like :
new Array2Dformatter(array)
While debugging you can use the "Display" window where you can write pieces of code and "execute" them with inspect (highlight the code -> right click -> inspect). In that window you have access to all variables of the breakpoint's context.
What exactly do you need this for? I think your solution is the best, but you should consider using the debug tools provided to you by Eclipse.
Is this for java?
Cool idea..
I usually do the following. I use the Eclipse Debug tools, like the Variables view, Inspect option and Display view. To get what you want try this one out. During debug, go to the Variables view, right click the variable and select New Detail Formatter...
Do that and you can display your array in the Variable view in the way you want (you need to put your toString() code here). Hope this works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With