Improve app_debug