As part of my debugging, I need to dump out a big object. Some of the data shows up like this:
#<Sketchup::Face:0x00007f9119bafea8>
This is the result of calling .inspect
on the Sketchup::Face
object, and Ruby calls .inspect
internally when things are printed to the console.
Is it possible to then get a reference to the actual instance, using that 0x00007f9119bafea8
identifier? I don't even know exactly what this is - a pointer, instance id, something else?
Of course I can always manipulate my data before printing to console but since this is just for temporary debugging I'm hoping there's a quick and easy way.
Note: normally I would put in a binding.pry
to avoid this whole business but due to Sketchup's restrictive programming environment it's not possible to use breakpoints there.