In case it helps anyone, here are the steps I needed to take to get geben working in spacemacs in order to debug local web apps (this in Ubuntu 16.04):

  • Add geben package to .spacemacs and reload
 dotspacemacs-additional-packages '(some-other-package geben)

  • Assuming you have xdebug installed, add the following to your php.ini file in /etc/php/7.1/apache2/php.ini
[xdebug]

xdebug.remote_enable=On

xdebug.remote_host=localhost

xdebug.idekey=geben

xdebug.remote_autostart=On
  • Open the file you’re interested in debugging
  • Start geben in spacemacs with M-x geben
  • Navigate to localhost/some-app.php in a browser

That should trigger geben. Debugging time!

A bonus note: I didn’t have any luck with geben-find-file when trying to add breakpoints to other files in the project, but using geben-open-file worked (just a little bit more cumbersome.)

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)