1 ) In your PHP.INI, add the following lines (You might need to change the xampp path if it's not installed on C:/):
- Code: Select all
[Zend]
zend_extension="c:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey=default
xdebug.remote_log="c:\xampp\tmp\xdebug.log"
xdebug.show_exception_trace=0
xdebug.show_local_vars=0
xdebug.show_mem_delta=0
xdebug.trace_format=0
xdebug.profiler_enable=0
xdebug.profiler_output_dir="c:\xampp\tmp"
Do NOT use "zend_extension_ts" as described here: http://help.blumentals.net/webuilder/php/dbgconfig.htm
(This setting is obsolete in PHP v5.3+ and no longer have any effect)
2 ) After modifying PHP.INI, restart the Apache server.
3 ) In WeBuilder open Options->Preferences.
4 ) Edit the "Preview->Mappings" section.
5 ) Add a mapping that maps your XAMPP "htdocs" folder to localhost, like this:
![Image](http://i.imgur.com/fOhajLd.png)
6 ) Edit the "Preview->Script Preview" section.
7 ) Restart WeBuilder.
To test if it works, create a simple PHP script like this, and add a breakpoint: