-
Notifications
You must be signed in to change notification settings - Fork 40
Visual Studio Code Integration
Mark Metcalfe 👽 edited this page Sep 14, 2025
·
11 revisions
Todo
- Install the PHP Debug extension
- Open 'launch.json' from the Run and Debug sidebar panel
- Add the following to
configurations:So your{ "name": "Listen for Xdebug", "type": "php", "request": "launch", "port": 9003, "pathMappings": { "/var/www/totara/src": "${workspaceFolder}/.." } }launch.jsonlooks like this:
Now whenever you want to debug a PHP script, simply add breakpoints wherever you wish, and then ensure you start listening for the debugger within the Run and Debug sidebar.
Todo
Todo
Copyright (c) 2025 Totara Learning Solutions Limited