From 9320a1c807a2d0c45dee1a2c818efcd2f95315b8 Mon Sep 17 00:00:00 2001 From: Michal Niewrzal Date: Mon, 5 Sep 2016 11:37:00 +0200 Subject: [PATCH] Add Debug section --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index f2b1587..d24d8a6 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,23 @@ code . ``` The last command will open the folder in VS Code. Hit `F5` to launch an Extension Development Host with the extension. For working on the language server, the easiest way is to replace the language server installation from composer in `vendor/felixfbecker/language-server` with a symlink to your local clone. + +## Debug +XDebug needs to be configured for remote debugging. Check if *ini* file contains necessary parameters: +``` +xdebug.remote_enable = 1 +xdebug.remote_autostart = 1 +xdebug.remote_connect_back = 1 +xdebug.remote_port = 9000 +xdebug.remote_handler=dbgp +xdebug.remote_host=localhost +``` +### Configure VS Code +TODO + +### Configure PDT +Download Eclipse package with PHP support ([PHP EPP](http://www.eclipse.org/downloads/packages/eclipse-php-developers/neonr)) + +* Start PDT +* Import extension project with File -> Open Project from File System +* Set breakpoint in PHP language server source code