I have problem with remote debugging. (never did this before).
I have a project. It's hosted on a remote server. I have access to /var/www/ of this server over samba share folder.
I have a local copy of that project. xdebug is installed and configured on the remote server. Created network drive to this samba folder with /var/www
Added project from existing sources. Selected my local copy of the project. On connection tab selected As upload/download folder my mounted folder.. (Y:\var\www\my_name\project_name), webserver root url: http://remote.server/), on mapping tab - local path to a local copy of the project ( C:\www\project_name, deployment path on server (relative to folder Y:\var\www\my_name\project_name - \, web path on server /my_name/project_name, project url is correct: http://remote.server/my_name/project_name
I need to debug one special part of the project.. script is in /modules/mod_name/core/bla.php, put there a brake point where I need it.
in order that script is accessed by project.. I have to visit some special page (landing page) http://remove.server/my_name/project_name/category_name -> for generating this seo urls project uses special class.. and special script.. let it be - seogen.php. (I put brake point in bla.php remember?). I put xdebug cookie and reload page. phpstorm brakes at 1st line of that seogen.php (i'm on /category_name/ ). if I step over or something.. it just ends on that script and debugging is finished.. it doesn't even come to the script I put brake point in.. I can step into then it begins to jump from script to script and goes it line by line.. spent 5 mins by stepping into but still wasn't on the correct script I want to debug... if I put cursor on line which I want to debug.. and do - run to cursor - it just finishes debugging. try to validate debugging (don't know if it's important or not..)
anyway it fails.. it tells me
Server name: remote.server
loaded php.ini: /usr/local/php54/etc/php.ini
debugger extension: Xdebug 2.3.3
Remote host is configured as 'localhost' despite server host is probably not local ( The host where the debugger client is running. See http://xdebug.org/docs/all_settings#remote_host for more information. )
remote port: 9000
remote connect back option is enabled ( xdebug.remote_host option will be ignored. See http://xdebug.org/docs/all_settings#remote_connect_back for more information. )
remoted mode: 'req'
I click validate and it does nothing. connect back does make that remote_host option IS IGNORED. is good.. but why then it doesn't VALIDATE?
why I can't debug script I want to debug? why it doesn't stop on my brake point? (enabled and disabled stop on first line but it still doesn't go to my brake point)