Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在PHPStorm中调试Laravel应用程序?_Php_Laravel_Xdebug - Fatal编程技术网

如何在PHPStorm中调试Laravel应用程序?

如何在PHPStorm中调试Laravel应用程序?,php,laravel,xdebug,Php,Laravel,Xdebug,我有一个AngularJS+Laravel应用程序,无法设置调试。 在项目根文件夹中,我有一个PHP文件,调试器总是在这个文件处中断。我使用PHPStorm并已取消选中“第一行设置” server.php 我在本地的开发机器上使用php artisan-serve。我的Xdebug-Conf [XDebug] zend_extension = "C:\xampp\php\ext\php_xdebug.dll" ;xdebug.profiler_append = 0 xdebug.profiler

我有一个AngularJS+Laravel应用程序,无法设置调试。 在项目根文件夹中,我有一个PHP文件,调试器总是在这个文件处中断。我使用PHPStorm并已取消选中“第一行设置”

server.php 我在本地的开发机器上使用
php artisan-serve

我的Xdebug-Conf

[XDebug]

zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
;xdebug.profiler_append = 0
xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
;xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port=9001
;xdebug.trace_output_dir = "C:\xampp\tmp"
xdebug.idekey = "PhpStorm"
在phpstorm上设置和调试

然后将断点放在routes.php上的任意位置。
启动调试并检查url端口,abc….com…./rapor?XDEBUG_SESSION_start=12360,那么什么不起作用?您说您无法设置调试,但调试器正确地中断了代码?看看这个,可能会有帮助
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
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
;xdebug.profiler_append = 0
xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
;xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port=9001
;xdebug.trace_output_dir = "C:\xampp\tmp"
xdebug.idekey = "PhpStorm"