danaxdesk.blogg.se

Phpstorm remote debugging
Phpstorm remote debugging








phpstorm remote debugging
  1. PHPSTORM REMOTE DEBUGGING MANUAL
  2. PHPSTORM REMOTE DEBUGGING CODE

( The following is based on Xdebug 2.4.0RC4 and PhpStorm 2016.2.1) On other installations, here’s my growing checklist when I try to use Xdebug and nothing happens: Then run vagrant provision to build/rebuild (this won’t affect your site).

phpstorm remote debugging

To turn on xdebug, make sure you’ve got: php_xdebug_default_enable: 1

  • CLI: /Applications/DevDesktop/apache/bin/apachectl -k restart.
  • the UI but with keyboard shortcuts, cmd-2 (stop) then cmd-1 (start).
  • Uncomment the zend xdebug extension and turn on remote_enable zend_extension=xdebug.so Acquia Dev Desktop:Įdit /Applications/DevDesktop/php7_1/bin/php.ini There’s an element of “it just works” for Xdebug in the server/PhpStorm configuration when using Acquia Dev Desktop or Drupal VM. (In fact, I don’t think it’s worked correctly first time for me once.)Īlso, you’ve probably got multiple projects, maybe running on different VMs, or using Docker (scroll down for special instructions for Docker on the Mac). Unfortunately, while the setup should be straightforward, it’s easy to lose the programming time you save spending ages tweaking your Xdebug and PhpStorm configuration to get it to work in the first place.

    PHPSTORM REMOTE DEBUGGING MANUAL

    No need to manual add var_dump() statements etc.

    PHPSTORM REMOTE DEBUGGING CODE

    Running Xdebug remotely is very useful – you can add breakpoints, inspect and modify the state of all variables/objects and type PHP code into a live console.










    Phpstorm remote debugging