Display integer variables in hex rather than decimal

Is there a way to configure the debugger to display integer values in hex rather than decimal?

I know a work around is to add watches and format the values as hex via something like:

  var.to_s(16)

or

  "%8.8X" % var

While the above works it is very cumbersome to have to create a variable watch everytime this is needed.  A solution to configure all integer variables in the desired hex, decimal, etc format would be nice.

Please sign in to leave a comment.