For those who code in Notepad++, I just want to confirm that Notepad++ does not have any built-in debugging function (i.e. ability to set breakpoints, step one by one and look at values in the middle of execution). I'm new to PHP coding and am looking for a good editor/IDE to use. Since I would like a debugging function, your answer would greatly help me narrow my choices. Note that I've recently downloaded and am in fact using Notepad++ at the moment, and cannot seem to find either a built-in debugger or a debugging plug-in from the Notepad++ menus. Thanks in advance.
Open the PHP file you want to debug in the Notepad++ and add a breakpoint to the script. You will see the Notepad++ icon blinking on the taskbar. Click on it and start debugging.
To bring up the Run and Debug view, select the Run and Debug icon in the Activity Bar on the side of VS Code. You can also use the keyboard shortcut Ctrl+Shift+D. The Run and Debug view displays all information related to running and debugging and has a top bar with debugging commands and configuration settings.
There is the DBGP Plugin for NP++ that hooks into xDebug if you want to try it.
I found decent install/setup instructions here, but as with most things computer related, YMMV.
I like the new Eclipse Helios with PDT 2.2 which hooks into xDebug. If you haven't used eclipse in a while you should check out the new version. The new build of PDT is by far the best PHP debugger I have used.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With