Symfony debug MessageHandler

So, i’m just getting into symfony and I’m currently working with a message & messageHandler. The handler is getting pretty advanced but I can’t seem to find a way to debug it. All I need is a way to show me my variable, like a dd($...) or something similar. I can’t really find any documentation about this although it seems like a pretty normal use case.

I’ve already tried this in my __invoke function of the handler.

public function __invoke(DetailDataMessage $dataMessage) {

  $test = "test";

  dump($test);
  var_dump($test);
  dd($test);

}

But I’m not getting anything. Any ideas, tips on how to handle this?
Thanks

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *