I saw a method that involved using logcat. On xda-developers. That's all I remember.
Edit: Memory was wrong, here's the method.
Except I think you have to dial ##SPC# or something similar... whatever famous code people around here have to dial to get you to PROMPT for it.