code: public function onConfig(Event $event)
      {
          $file = $this->debug->getCfg('file');
          $this->setFile($file);
      }
docs: debug.config event subscriber
  
  @param Event $event debug.config event object
  
  @return void