how to get current position of the program pointer to Error message


I need to put postion of program pointer to a error message box. Is there any easy way to do it?

I saw there is an option to do it via PC SDK with class ProgramPosition.

If there is no easy way, is there ability to write a small c# code to return position of a pointer, or I'd need a whole c# code to run robot.