When writing my test I used to be able to dump out variables using the dump and die function dd(). However on new projects it seems to throw "Test was run in child process and ended unexpectedly" whenever there is a die anywhere in the code instead of displaying the dumped variable result.
This is making developing/debugging test really difficult and slow. Has anyone else experienced this recently?
I am currently using phpUnit version 9.5.2 and can confirm that this does work in this same version on other projects.
I am also running this in PhpStorm's built in test UI and running Drupal 9.2