Debugging Twig files in PhpStorm

Hi, I have installed Shopware 6 on Docker and wondered if anyone was successfully using the debugger with Twig files. I am trying to debug my plugin and using the plugin to create new elements, blocks and extend blocks, but I would like to see the variable outputs and I am not sure how to go about this, as from the documentation on PhpStorm, it looks like it should be easy to debug using Zero-configuration debugging. Or could I have this wrong, are twig files like using underscore templates and can’t be used with the debugger tool? I have tried to see if there was a suggested set up in

bin/console debug

but I am learning as I go along and not sure if this is the direction to take. Any suggestions would be greatly appreciated. Thanks