Skip to content

Instantly share code, notes, and snippets.

@Kobedinho
Created October 18, 2022 17:27
Show Gist options
  • Save Kobedinho/a7072f8fb3499a139c2a46ed9f5bf4e3 to your computer and use it in GitHub Desktop.
Save Kobedinho/a7072f8fb3499a139c2a46ed9f5bf4e3 to your computer and use it in GitHub Desktop.
[Sugarcrm vagrant box (sugarcrm/php80es716)] #xdebug #vagrant #vscode #sugarcrm

Sugarcrm vagrant xdebug.md

  • tested with vagrant box: sugarcrm/php80es716

File (inside vagrant): /etc/php/8.0/cli/conf.d/20-xdebug.ini

zend_extension=xdebug.so
xdebug.mode=debug
xdebug.start_with_request=yes

#your host ip Not the vagrant ip address
xdebug.client_host=192.168.1.9
xdebug.client_port=9003

xdebug.max_nesting_level = 250
xdebug.log=/var/log/xdebug_apache.log

vscode config : .vscode/launch.json

"version": "0.2.0",
"configurations": [
  {
    "name": "Listen for Xdebug",
    "type": "php",
    "request": "launch",
    "pathMappings": {
      "/vagrant/instance.sugar.loc/": "${workspaceFolder}/",
    },
    "port": 9003,
    "log": true
  },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment