Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed border and added TOC

Include Page
Social Buttons PhpStorm
Social Buttons PhpStorm

 

Table of Contents

Panel

Version 9 of PhpStorm brought significant improvements in configuring PhpStorm and your debugger to interact correctly. This tutorial explain how to use the Web Server Debug Validation tool to solve any problems with your validation configuration. 

...

Local Web Server or Shared Folder

Image Modified

If you are using a local web server for development, or a network shared folder (for example, a Vagrant box), then you only need to configure the local Path to create the validation script, and the Url to validation script. These need to match up, so that the path on the local file system (or shared folder) needs to match the url used to call that script on your web server. In the screenshot above, the webroot of the project is the public folder, and the site can be loaded via the local ip address on port 8080. Once these paths match, we can hit the Validate button.

Remote Web Server

Image Modified

If your files are local, but your web server is remote to your development system, then you'll need to select the Remove Web Server radio button, and configure the remote web server. The Path to create validation script  should again be the path to the webroot within your project. You'll need to have a Deployment configured in PhpStorm for this project. For more information on creating a Deployment, see the Deploying PHP applications with PhpStorm tutorial. 

...

Validation Runs Successfully

Image Modified

In this instance, the validation script has been created and called so the validation can be deemed successful (even though we have some problems). The validator is telling us that my remote host (localhost) does not match the url I'm using to call the validation script (stayup.dev) and this might be a problem. It's also telling us that while Xdebug is installed, and is configured to be running on the same port that PhpStorm is expecting (9000), the Remote debug setting is not enabled so we won't get any debug information.

...