I have an AngularJS + Laravel application and cannot configure debugging. In the project root folder, I have a PHP file, and the debugger always breaks in this file. I am using PHPStorm and not marked "First line settings"
server.php
<?php
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$uri = urldecode($uri);
$paths = require __DIR__.'/bootstrap/paths.php';
$requested = $paths['public'].$uri;
if ($uri !== '/' and file_exists($requested))
{
return false;
}
require_once $paths['public'].'/index.php';
Xdebug Configuration
zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=0
I use php artisan servedev on my local machine.
source
share