The *obj* IDE global variable can be used when debugging a program.
You can also enter !*obj* at the AutoCAD Command prompt or use the variable in an AutoLISP program like you would with an user-defined variable.