PHP/IDE/VSC

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< PHP‎ | IDE
Revision as of 13:34, 8 June 2022 by Woozle (talk | contribs) (Created page with "Apparently Visual Studio Code (VSC) can be used to debug PHP code, but I haven't found any instructions that walk through the entire process. * '''[official]''' [https://c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Apparently Visual Studio Code (VSC) can be used to debug PHP code, but I haven't found any instructions that walk through the entire process.

The basic trick seems to be:

  • Install a debugger extension (VSC will at least lead you through this).
  • Open the index.php file (or wherever the execution should start) in VSC.
    • ...remembering that VSC does not support drag-and-drop (at least not from Caja where the files are reached via sftp).

After that, though, there seem to be some issues finding the correct paths for other files to include (via {include/require}[_once]()).