General question

Just interesting, if it is possible to debug the admin side in Manento2. If it is, wold be glad to saw some hints.

Debug process now

For now I'm using PhpStorm with XDebug. If I want to debug some module, I'm just setting breakpoints and run in debug mode "Php Web Application" preset with link to this module. I suppose this approach can't be used to debug the admin side because of some "key" dynamically generating all the time.


  • Which is your OS? – Khoa TruongDinh Jul 9 '16 at 16:12
  • @KhoaTruongDinh thank you for participation. macOS El Captain, but I have already received the answer. – D.R. Jul 9 '16 at 16:43

Yes, it is possible to debug the admin side.

Simplest way for you, it disables the secure key.

But you also can use chrome xdebug helper or marklet to start debug from any page. In this key better to configure "php remote debug".

PS: don't use Magento on "localhost", you will have problem with cookies. Add doment to host files (like mage.dev) and use it

  • Thank you for the answer. I heard about that and will reinstall with Composer (for now I don't know how to use it). My server is very uncofigured, because of the new machine and I need to finish the development of one simple module, so for closest week It's localhost :) – D.R. Jul 9 '16 at 16:41
  • 1
    For assistance with Composer, first install Composer. Then use this command line to get the software and finally install using either the Setup Wizard or command line. – Steve Johnson Jul 11 '16 at 20:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.