Configure Notepad++ DBGP plugin and XDebug for PHP
Solution 1
i found the answer here
http://thecancerus.com/debugging-php-using-xdebug-and-notepad-part-i/
Make sure you have latest version of Notepad++ is installed.
- Download the latest release of DBGp Plugin.
- Unzip and move dbgpPlugin.dll file to plugins folder of your notepad++ installation folder, in my case the path is “C:Program FilesNotepad++plugins”.
- Check out the readme.txt file, that is bundled with plugin, to make sure we don’t miss anything.
- Now open Notepad++, and you should see DBGp option in plugins menu.
- We are now almost finished with setup, only thing remaining is to configure DBGP to listen to right port and we are done.
- Goto “Plugins->DBGp->Config” to open the configuration screen of DBGp plugin.
- IDE KEY should be same to the one you specified in php.ini settings above. Click Ok and you are done.
- To start debugging just add “?XDEBUG_SESSION_START=session_name” at end of you url. ‘session_name’ could be anything you want to keep.
Solution 2
XDebug now have their very own wizard.
All you have to do is copy and paste the contents of your phpinfo output into it. It'll provide you with the correct library and the details that you need to add to your php.ini.
Dont forget that you have to append your URL with ?XDEBUG_SESSION_START=name
to kick things off.
Wasim A.
[email protected] | Skype:wasimxe | Whatsapp: +923455407008
Updated on April 04, 2020Comments
-
Wasim A. about 4 years
I followed these steps:
- download x-debug*.dll to D:\Program Files\webserver\php\ext\php_xdebug.dll
modify php.ini and insert following
zend_extension_ts="D:\Program Files\webserver\php\ext\php_xdebug.dll" xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.idekey=default xdebug.remote_autostart=1
restart apache and XDebug is successfully installed.
DBGP is installed successfully and configured with 127.0.0.1
but XDebugger is still not connecting/working with notepad++.
-
Sukeshini over 10 yearsThank you. I followed the steps given in the link which you have provided. It worked perfectly.
-
Alan Wells over 10 yearsOne way to get php info:
<?php
phpinfo();
?>
-
ProgramFOX about 10 yearsWhile this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes.