Actually, this hack may be low risk, because it follows code that is otherwise public in the compiler.
Just don't use it in production.
That said: I have a use case for it, so I keep it in my toolbox.
(Made a feature request, because as you imply it is a great debugging tool aside from the debugger supporting it.)