Atom PHP Xdebug
Xdebug
Die aktuelle Xdebug.dll herunterladen, und anschließend im PHP extension Verzeichnis speichern.
Info
Die Xdebug.dll muss in abhängig zur PHP Version installiert werden.
Beispiel XAMPP
C:\xampp\php\ext\php_xdebug-2.5.0-5.6-vc11.dll
Atom
Mit Install Packages wird php-debug Installiert.
Info
Pakete werde im Atom mit File > Settings > Install Packages Instaliert.
Einstellungen
In der php.ini müssen fogende Zeilen hinzugefügt werden.
zend_extension=C:\xampp\php\ext\php_xdebug-2.5.0-5.6-vc11.dll
1
Info
Zu finden ist die php.ini mit XAMPP unter C:\xampp\php\php.ini
[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Damit Atom auch informiert wird muss die config.json angepasst werden mit folgenden Einstellungen
"php-debug": PathMaps: [
"remotepath;localpath"
"/base/path/on/remote/system;C:\\base\\path\\on\\local\\system"
]
ServerPort: 9000
1
2
3
4
5
2
3
4
5