Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phpstorm and xdebug breakpoints

I use phpstorm to develop websites, but for some reason breakpoints aren't synchronized. Here is my situation:

I have a folder in which I keep all my projects. On the same pc, I have also xampp running as a testing server. In phpstorm I have the xampp testing server configured as a mounted folder server. But when I apply breakpoints in the original source files, those breakpoints aren't synchronized with the files in the htdocs folder of xampp. How can I solve this?

like image 408
Tiddo Avatar asked Dec 17 '22 13:12

Tiddo


2 Answers

Looks like you need to set path mappings. There are some information about that - http://blogs.jetbrains.com/webide/2011/03/configure-php-debugging-in-phpstorm-2-0/

like image 100
nnmatveev Avatar answered Jan 14 '23 00:01

nnmatveev


I had similar problem when I set a breakpoint but it didnt stop on it while debugging. My webserver uses a virtual drive letter to make httdocs path easier. So my mistake was that I had not set virtual path as content root of the project in File-Settings-Directories but a real path to my local folder

like image 25
Andrey Zausaylov Avatar answered Jan 14 '23 01:01

Andrey Zausaylov