Java code evaluation (IntelliJ IDE), use toString() in some point?

I have discovered the root cause for this behavior.

You can choose in what way IntelliJ evaluation will display the data: the result can be the Object or toString evaluation. Therefore the error i had experienced, View as->toString was used, while not all the objects had toString implemented. Hope it will help someone in the future.

enter image description here

You can update the display type for a variable by right clicking on the variable (inside the variables window of the debugger) and clicking on 'View as'

If you don't want to update it manually each time, you can change it in IntelliJ properties following this steps