Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How tell PHPStorm debugger, that my project has document root other than project root

I'am trying to set up PHPStorm with xdebug. Everyting launches fine, but breakpoints just do not work and have "x" symbol on them.

enter image description here

I'm using openserver with PHP 5.4 and editing files directly on the local web server, so no file mapping is necessary.

I think, that my problem is that web server root is located below the project root directory (for security reasons) and PHPStorm does not that.

Project root: C:\OpenServer\domains\mysite

Web server root (configured in nginx): C:\OpenServer\domains\mysite\httpdocs

How do I tell PHPStorm, that the index.php that webserver runs is actually C:\OpenServer\domains\mysite\httpdocs\index.php, but not C:\OpenServer\domains\mysite\index.php?

like image 392
Silver Light Avatar asked Nov 08 '12 12:11

Silver Light


1 Answers

You have to use path mapping. You can find it in debug server configuration Debug server configuration window

Check out official docs and vids:

  • Help page
  • PHP Debugging webinar recording
  • JIT debugging
  • Smart step into
  • Simultaneous debug sessions
like image 178
Ostin Avatar answered Oct 14 '22 06:10

Ostin