PHP/IDE

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< PHP
Revision as of 13:35, 8 June 2022 by Woozle (talk | contribs) (Woozle moved page PHP/debugging/interactive to PHP/IDE)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Notes

Apparently PHP is capable of being interactively debugged in an IDE, using only FOSS software. I'm still researching this. Apparently there are a number of front-ends (IDEs) which support the necessary protocol, including KDevelop, and there's at least one plug-in on the back-end.

It may be necessary to run PHP and the IDE on the same machine.

  • phpdbg - function library. There is a page for each function, but not a lot of examples or overall explanation of how to make it work.
  • XDebug: Debugger and Profiler Tool for PHP

Pages

  • /VSC: using Visual Studio Code

Language Server Protocol (LSP)

It's not clear whether LSP is any help with interactive debugging; it seems primarily aimed at editing.

  • langserver.org is "A community-driven source of knowledge for Language Server Protocol implementations", including several for PHP.
    • intelephense ticks the most boxes; not sure how to make it work, though
    • php-language-server seems more thoroughly documented (shows graphically what it can do), and might be easier to install