Consider using the VS Code extension instead.
By default, plugin versions >= 0.14 will open a TCP connection on port 9003, the same default port as Xdebug 3: https://xdebug.org/docs/upgrade_guide#Step-Debugging
Older versions will listen on port 9000 by default, the same as Xdebug 2.
For any v3 release of Xdebug, a minimal configuration resembles the following:
[xdebug] xdebug.mode = debug xdebug.log_level = 10 Note The xdebug.remote_handler property is obsolete as of version 2.9: https://2.xdebug.org/docs/all_settings#remote_handler
Xdebug 2 can be configured according to the "SERVER SIDE INSTALL" section of the original README, except the port number must be set explicitly:
[xdebug] xdebug.remote_port = 9003 Alternatively, change the plugin's default port in the settings dialog, or edit the configuration file at <NPP_PLUGINS_DIRECTORY>\Config\dbgp.ini:
[Misc] listen_port = 9000 -
Xdebug creates malformed URIs for files with Windows UNC paths: https://bugs.xdebug.org/view.php?id=1964
As a result, users may notice that:
-
breakpoints can be set in local files with UNC paths, but they are never hit since the debugger can't find them; attempting to remove the breakpoints may also fail
-
sending the
sourcecommand with a UNC path fails with a "cannot open file" error
As a workaround, map any file shares to a drive letter, e.g.
net use Z: \\hostname\share, and only send drive-mapped file names to the debugger, e.g.source -f file:///Z:/var/www/index.php -
-
Re-positioning the debugger panel too many times may cause an infinite redraw loop, hanging Notepad++. This could simply be a race condition, or a limitation of the editor's window management capabilities. Independent bug reports found here, here and here suggest that it's a longstanding problem, and not unique to DBGp. See 5b0af29.
-
Tooltips are not always destroyed completely, leaving hollow outlines on the screen. See 6560b64.