Norm: You can get a stack trace trivially by creating an Exception (but not throwing it): its stacktracelements will all be there. As for the local variables, not a clue off the top of my head - but...