Symfony 4: Var-dumper not working properly

后端 未结 1 1993
悲&欢浪女
悲&欢浪女 2021-01-03 03:00

I tried to use the wonderful dump function from the var-dumper bundle in symfony 4 and for some reason I get the following error:

Failed to start the session because

相关标签:
1条回答
  • 2021-01-03 03:30

    A guy named Simon Waldburger mentioned in the lesson's comments that installing "debug" fixed the issue (it fixed it for me). The instruction was in the next lesson.

    composer require debug --dev
    

    iiirxs is also correct, to output dump in twig file, do

    {{ dump(variable) }}
    
    0 讨论(0)
提交回复
热议问题