ソースを参照

Make PHPStorm + Xdebug readme easier to read

Mark Shust 6 年 前
コミット
cab57dcc1a
1 ファイル変更19 行追加19 行削除
  1. 19 19
      README.md

+ 19 - 19
README.md

@@ -172,36 +172,36 @@ Otherwise, this project now automatically sets up Xdebug support with VS Code. I
 
 
 ### Xdebug & PHPStorm
 ### Xdebug & PHPStorm
 
 
-First, install the [Chrome Xdebug helper](https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc). After installed, right click on the Chrome icon for it and go to Options. Under IDE Key, select PHPStorm from the list and click Save.
+1.  First, install the [Chrome Xdebug helper](https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc). After installed, right click on the Chrome icon for it and go to Options. Under IDE Key, select PHPStorm from the list and click Save.
 
 
-Next, enable Xdebug in the PHP-FPM container by running: `bin/xdebug enable`, the restart the docker containers (CTRL+C then `bin/start`).
+2.  Next, enable Xdebug in the PHP-FPM container by running: `bin/xdebug enable`, the restart the docker containers (CTRL+C then `bin/start`).
 
 
-Then, open `PHPStorm > Preferences > Languages & Frameworks > PHP` and configure:
+3.  Then, open `PHPStorm > Preferences > Languages & Frameworks > PHP` and configure:
 
 
-- `CLI Interpreter`:
-  - Create a new interpreter and specify `From Docker`, and name it `markoshust/magento-php:7-2-fpm`.
-  - Choose `Docker`, then select the `markoshust/magento-php:7-2-fpm` image name, and set the `PHP Executable` to `php`.
+    * `CLI Interpreter`
+        * Create a new interpreter and specify `From Docker`, and name it `markoshust/magento-php:7-2-fpm`.
+        * Choose `Docker`, then select the `markoshust/magento-php:7-2-fpm` image name, and set the `PHP Executable` to `php`.
 
 
-- `Path mappings`:
-  - Don't do anything here as the next `Docker container` step will automatically setup a path mapping from `/var/www/html` to `./src`.
+    * `Path mappings`
+        * Don't do anything here as the next `Docker container` step will automatically setup a path mapping from `/var/www/html` to `./src`.
 
 
-- `Docker container`:
-  - Remove any pre-existing volume bindings.
-  - Ensure a volume binding has been setup for Container path of `/var/www/html` mapped to the Host path of `./src`.
+    * `Docker container`
+        * Remove any pre-existing volume bindings.
+        * Ensure a volume binding has been setup for Container path of `/var/www/html` mapped to the Host path of `./src`.
 
 
-Open `PHPStorm > Preferences > Languages & Frameworks > PHP > Debug` and set Debug Port to `9001`.
+4. Open `PHPStorm > Preferences > Languages & Frameworks > PHP > Debug` and set Debug Port to `9001`.
 
 
-Open `PHPStorm > Preferences > Languages & Frameworks > PHP > DBGp Proxy` and set Port to `9001`.
+5. Open `PHPStorm > Preferences > Languages & Frameworks > PHP > DBGp Proxy` and set Port to `9001`.
 
 
-Open `PHPStorm > Preferences > Languages & Frameworks > PHP > Servers` and create a new server:
+6. Open `PHPStorm > Preferences > Languages & Frameworks > PHP > Servers` and create a new server:
 
 
-- Set Name and Host to your domain name (ex. `magento2.test`)
-- Set Port to `8000`
-- Check the Path Mappings box and map `src` to the absolute path of `/var/www/html`
+    * Set Name and Host to your domain name (ex. `magento2.test`)
+    * Set Port to `8000`
+    * Check the Path Mappings box and map `src` to the absolute path of `/var/www/html`
 
 
-Go to `Run > Edit Configurations` and create a new `PHP Remote Debug` configuration by clicking the plus sign and selecting it. Set the Name to your domain (ex. `magento2.test`). Check the `Filter debug connection by IDE key` checkbox, select the server you just setup, and under IDE Key enter `PHPSTORM`. This IDE Key should match the IDE Key set by the Chrome Xdebug Helper. Then click OK to finish setting up the remote debugger in PHPStorm.
+7. Go to `Run > Edit Configurations` and create a new `PHP Remote Debug` configuration by clicking the plus sign and selecting it. Set the Name to your domain (ex. `magento2.test`). Check the `Filter debug connection by IDE key` checkbox, select the server you just setup, and under IDE Key enter `PHPSTORM`. This IDE Key should match the IDE Key set by the Chrome Xdebug Helper. Then click OK to finish setting up the remote debugger in PHPStorm.
 
 
-Open up `src/pub/index.php`, and set a breakpoint near the end of the file. Go to `Run > Debug 'magento2.test'`, and open up a web browser. Ensure the Chrome Xdebug helper is enabled by clicking on it > Debug. Navigate to your Magento store URL, and Xdebug within PHPStorm should now trigger the debugger and pause at the toggled breakpoint.
+8. Open up `src/pub/index.php`, and set a breakpoint near the end of the file. Go to `Run > Debug 'magento2.test'`, and open up a web browser. Ensure the Chrome Xdebug helper is enabled by clicking on it > Debug. Navigate to your Magento store URL, and Xdebug within PHPStorm should now trigger the debugger and pause at the toggled breakpoint.
 
 
 ## License
 ## License