開発環境をEC2に移したところ、debugKitが表示されないという怪現象が。 debug.logをみたところ:
2018-05-14 13:46:16 Warning: DebugKit is disabling itself as your host `ホスト名` is not in the known safe list of top-level-domains (localhost,dev,invalid,test,example,local). If you would like to force DebugKit on use the `DebugKit.forceEnable` Configure option.
本番で誤ってDebugKitがONにならないようになっているんですね。app.php
をこのように記述します:
'DebugKit' => [ 'forceEnable' => true, ]
これで回避できます。