I was just doing some debugging, and wanted to modify the value of a String member variable to null to see if that would fix a bug I'm looking into. I clicked on the member in the "Data" window, selected Modify Value... from the right mouse menu, then entered null into the field for the new value.
However, that ended up setting the value to the String containing the four letters "null".
I shot an Oracle Messenger chat over to Liz who works on our core debugger and she passed on the tip. To set an Object member variable to null in the Modify Value dialog, enter the digit zero (0) into the New Value field, and check the checkbox that says Interpret New Value as Object Address.
Bingo. That did it.
1:49:41 AM
|