Why can't I debug twig templates with intellij idea?
The problem was that the twig cache path was not set for the project. 

See https://blog.jetbrains.com/phpstorm/2019/05/twig-and-blade-templates-debugging-2/