Added support for external debugging (ctrl+D)