Update debug mechanism

The extension template now uses a .debug file to allow remote debugging