
Prerequisite
You are working through Step Debugging PHP on Your Personal Computer.
✅ Installed Chrome web browser.
Install Xdebug Chrome Extension
- Start Chrome web browser application.
- Navigate to ‘Chrome’ menu -> ‘Settings’.
- Navigate to ‘Extensions’ sidebar.
- Navigate to ‘Chrome Web Store’
sidebar.
- Search for ‘xdebug’
extensions in chrome web store.
- Select ‘Xdebug Chrome Extension’
from the list.
- Hint: It is developed by gxumyd (aka mydogger
).
- Hint: It is developed by gxumyd (aka mydogger
- Click [Add to Chrome] button.
- Click [Add Extension] button, in the popup window.
- Navigate back to web browser ‘Extensions’ page.
- Click [Details] button, for ‘Xdebug Chrome Extension’.
- Ensure it is enabled and turned on.
- Enable ‘Pin to Toolbar’ option.
- Enable ‘Allow in Incognito’ option.
- Click ‘Extension Options’ link.
- Enter ‘PHPSTORM’ in ‘IDE Key’ option.
- Hint:
PHPSTORMis just a common string identifer used as a default value by a few debug applications. - Beginner Scenario: We are using
PHPSTORM, in these instructions, to simplify the default integration with the Xdebug Chrome Extension; only while we get familuar with the whole PHP Step Debug end-to-end process. - Advanced Scenario: In the future, when you have many local websites on your personal computer, and have multiple JetBrains IntelliJ project open at the same time … then you would want to use a different and unique IDE Key ‘Session ID’ in each project. Then you only need to change the Xdebug Chrome Extension option to match the target IntelliJ project you are focused on; without having to close all the other IntelliJ projects.
- Hint:
- Tick ‘Disable Popup’ option.
- Beginner Scenario: The debug button in the web browser toolbar becomes an On/Off switch; because we are using a single IDE Key (
PHPSTORM).- Hint: While we get familuar with the whole PHP Step Debug end-to-end process and are not doing Trace or Profile investigations.
- Advanced Scenario: The LocalWP 9.x (Lightning) application has a default Xdebug configuration of xdebug.mode=debug,develop. The Xdebug capability for coverage, gcstats, profile and trace will never execute; not without a bit of tweaking under the hood in the php.ini.hbs file.
- Beginner Scenario: The debug button in the web browser toolbar becomes an On/Off switch; because we are using a single IDE Key (
- Done.
