PhpStorm中的调试项目 [英] Debug Project in PhpStorm

查看:438
本文介绍了PhpStorm中的调试项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一个满意的答案在网络和StackOverflow没有成功。如何使用 。



现在按照步骤







在图像的第三个快照中。你的内置服务器端口(我的是63342)可能会有所不同,我没有改变它,它已经在那里(默认),我刚刚显示。我更改了其他选项。



就是这样!!



编辑1:



如果您从图1中写入php.ini中的所有xdebug设置都有问题,这里是文本版本:不要改变路径就像我有,因为你可能在其他驱动器上安装了xampp / wamp,在不同的文件夹中。所以请添加相应的zend_extension路径。

  [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 =127.0.0.1
xdebug.trace_output_dir =C\xampp\tmp
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM

确保遵循:


  1. 确保您已从安装Chrome扩展程序这里


  2. 确保xampp / wamp服务器正在运行。


  3. 麦确定Xdebug调试器已配置。



    如果不是,Goto File-> Settings - >搜索PHP,并按照以下图示



I have been searching for a satisfactory answer on the net and StackOverflow without success. How should I debug Magento as a whole application — not a single file — using the PhpStorm IDE? You can do this in Visual Studio, Netbeans, and IntelliJ IDEA but I need to know how to debug an application, such as Magento, using PhpStorm.

When I try to run the debugger on a controller, such as C:\xampp\htdocs\coinandbuillion\app\code\core\Mage\Checkout\controllers\CartController.php, a bunch of errors get thrown because PhpStorm is trying to execute the file directly rather than working through the application dispatcher in index.php.

So does anyone know how to debug automatically from the initialization point of application till the end?

Here is snapshot what i got. I cant debug after that button click.

解决方案

Finally I did it !!! :) Please refer steps I followed.

Install Jetbrain's chrome extension from Here.

Now follow steps as below.

In 3rd snapshot in image. your Built in server port(mine is 63342) may be different for you,I didnt change it , it was already there(default), I have just shown it. I changed other options only.

That's it !!

Edit 1:

IF you have problem writing all xdebug setting in php.ini from diagram 1, here it is text version: Don't change paths exactly like i have because you may have xampp/wamp installed on other drive, in different folder. So please add paths like zend_extension accordingly.

[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 = "127.0.0.1"
xdebug.trace_output_dir = "C\xampp\tmp"
xdebug.remote_port = 9000
xdebug.idekey=PHPSTORM

Ensure following :

  1. Ensure you have Installed Chrome Extension from Here

  2. Make sure xampp/wamp server is running.

  3. Make sure Xdebug debugger is configured.

    If not , Goto File->Settings -> search PHP and follow diagram as follows

这篇关于PhpStorm中的调试项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆