Why isn't it just using the default (localhost:8080) server I specified for the project, in settings?Īny pointers as to exactly how to get this working would be appreciated. The other weird thing is that if I choose "open in browser" from within PhpStorm, the IDE insists on creating a new server at the 63xxx default port and then asks if I would approve the incoming xdebug request. I tried (and tried and tried) to play with the path mappings - but no luck. Instead, I get the message "Debug session was finished without being paused". But I don't want that - I want PhpStorm to stop at the breakpoint I set in my code. When I launch index.php in my browser, PhpStorm is obviously listening because I can get it to halt if I set the "break at first line" option on. Use this page to configure the behaviour of the Xdebug and Zend Debugger. If the plugin is disabled, enable it on the Installed tab of the Settings Plugins page, as described in Managing plugins. The PHP plugin is bundled with PhpStorm and activated by default. I have a Server set up in PhpStorm as localhost:8080. Ctrl Alt 0S The page is available only when the PHP plugin is enabled. I have xdebug configured correctly, and Apache on my local machine is serving my website up at localhost:8080. ![]() It might also be some breakpoint that is set in 'bad place' (not every line is good for setting it). It could be completely different script or hit for another resource (e.g. PhpStorm supports debugging with two most popular tools: Xdebug and Zend Debugger. 'Debug session was finished without being paused' means that some script that was meant to be debugged run without stopping at any breakpoint. To figure out the problem check path mappings configuration for server at PHPServers or enable Break at first line in PHP scripts option (from Run menu). Hope one of these helps.I've spent 10 hours on this, and have read every thread here, out on StackOverflow and whatever other articles I could find. Before you start debugging, make sure that you have a debugging engine installed and configured properly. Getting 'Debug session was finished without being paused' and no stop in execution when using Xdebug in PhpStorm. Debug session was finished without being paused It may be caused by path mappings misconfiguration or not synchronized local and remote projects. Sorry there are a lot of "I thinks" but that seems to be the way with debugging and my experience. If your mappings are incorrect PHPStorm won't match the files reported by xdebug correctly (again I think relevant for remote development). xdebug must be set up to handle remote debugging session and there must be an idekey that can be used to trigger the debug session - I didn't find other settings that seemed relevant. In order for this to work the following settings in xdebug are needed. With symfony I can run it in development mode and I think I also needed to tell doctrine not to use proxy objects so that it would break on the file I was expecting.Ģ. The problem: to have full debugging in phpstorm/xdebug through out the request/response cycle. ![]() Is the file that you have a breakpoint on the same file that is executed on the web server? For example, developing with something like Symfony (which I believe Drupal is built on) there are a lot of cached files that are executed and the main file is not therefore the debugger will not report the file you are waiting to break on. ![]() I had PHPStorm installed on a windows machine with a remote web server on Linux (Ubuntu) and using xDebug.ġ. are you on Windows, are you developing remotely, are you using xDebug or Zend Debugger, I'm not sure if this will help you or not. I think I set it to 6 (established by checking the ports used on the web server). Settings > Languages & Frameworks > PHP > Debug > "Max. I seem to recall something similar and I think the way I resolved it was to increase the maximum number of simultaneous connections under:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |