Jump to content
The Uniform Server Community

HOWTO: XDebug and Notepad++


Recommended Posts

This is a quick guide to show you how to setup XDebug and Notepad++ to debug your apps.

The guide is split into two parts: Server and Client

This guide presumes that you are running UniServer and Notepad++ locally.



  1. Download XDebug from XDebug. You need to download the Windows module for PHP 5.2.1-5.2.7.
  2. Copy the file to (Drive Letter):\Uniform Server\udrive\usr\local\php\extensions
  3. Open php.ini and scroll to the end of the file
  4. After the eaccelerator settings, insert the following lines

  5. Start the server and go to http://localhost/apanel/phpinfo.php. You should see something like this
    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with eAccelerator v0.9.5.1, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
    with Xdebug v2.0.2, Copyright (c) 2002-2007, by Derick Rethans


  1. Download and install Notepad++ from here.
  2. Download the DBGP plugin from here (DBGpPlugin_0_6b_dll.zip). Extract the dll to the plugins directory in C:\Program Files\Notepad++\plugins.
  3. Start Notepad++ and go to Plugins > DBGp > Config..
  4. The settings are as follows
    Remote Server IP = (blank)
    IDE KEY = (blank)
    Remote Path = W:\www
    Local Path = W:\www
    Refresh local context on every step - Checked
    Refresh Global context on every step - Checked

  5. Start the listener by going to Plugins > DBGp > Debugger. This should open a new panel @ the bottom of the screen.
  6. Open up IE and load a page, for example http://localhost/index.php

If everything has gone to plan Notepad++ should start flashing in the Taskbar.

There are buttons to step in/over lines and if you highlight a variable and press Crtl - F7 it wil show you the contents (this works for objects/classes too).


I hope this is of use.

When the wiki is back up I plan to copy it over and hopefully expand.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...