Yafar_iSiYafar_iSi MemberComments: 15 Received thanks: 1 Member since: June 2019

Hi

Not sure if to put this on Theme or Programing, but here we go:

 

Is there a way to debug the theme compilation?

I tried :

bin/console theme:compile -vvv

but not useful info

My problem is that I get a 

Segmentation fault (core dumped)

But no trace...

Answers

  • Jens_KJens_K MemberComments: 55 Received thanks: 34 Member since: March 2017

    Hello Yafar_iSi,

    if a segmentation fault occurs, you usually don't get any output at all even if you have set the highest debug/verbosity level. You could use a debugger like xdebug to step thru the code and see where it breaks. You can also edit the platform/src/Storefront/Theme/ThemeCompiler.php and insert a exit() call to see until which point the code gets executed and when the segmentation fault occurs.

    Best regards

    Jens

    Thanked by 1Yafar_iSi
Sign In or Register to comment.