Currently to obtain debug maps with positions you must use reflection. That looks ugly, because you need to catch checked exceptions, that never will be thrown.
I suggest to add to runtime special interfaces, that will be implemented by generated classes when debug mode is activated.