1. start wampserver and check your php version by clicking on wamp tray icon and going to php > version
2. open C:\Program Files\nusphere\phped\debugger\server\Windows\x86 and copy the file php_dbg.dll-5.2.x [considering php version to be 5.2 , if you have any other version then copy the file corresponding to it].
3. open C:\wamp\bin\php\php5.2.8\ext [change it to whatever path you have installed the wamp in. if you have any other php version other than 5.2.x then go to the corresponding php folder] and paste the file php_dbg.dll-5.2.x
4. open php.ini and add the following lines in the bottom. make sure that you name the extension "php_dbg.dll-5.2.x" if you are copying file "php_dbg.dll-5.2.x" in step 3. if you have any other filename then do not forget to change the name below. :
extension=php_dbg.dll-5.2.x
[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=ALL
debugger.ports=7869, 10000/16
5. Now just open your php code and from the point where you want to start debugging just put in this function DebugBreak();
Happy debugging !!
Attachment | Size |
---|---|
nusphere_phped_59_494037.jpeg | 17.95 KB |