简体   繁体   English

在NetBeans中安装和调试Prestashop模块

[英]Installing and Debugging Prestashop Module in NetBeans

I have installed Prestashop module in my local and placed my prestashop folder in apache server htdocs folder. 我已经在本地安装了Prestashop模块,并将我的prestashop文件夹放置在apache服务器htdocs文件夹中。

It is working fine, when i run it in local (localhost:8090/prestashop/index.php). 当我在本地(localhost:8090 / prestashop / index.php)中运行它时,它工作正常。

I'm trying to study code from prestashop to create a new module. 我正在尝试研究来自prestashop的代码以创建一个新模块。

so I installed it in netbeans (project taken from apache server htdocs folder). 所以我将其安装在netbeans中(项目是从apache服务器htdocs文件夹中提取的)。

from netbeans, it runs perfectly but i can't debug it. 从netbeans,它运行完美,但我不能调试它。

Please help to debug it. 请帮助调试。

在此处输入图片说明

Befor some one help you to configure xdebug or other there is one good way to debug with some changes in config/deines.inc.php : 在某人帮助您配置xdebug之前,或者通过一种对config / deines.inc.php进行更改的好方法来进行调试:

define('_PS_MODE_DEV_', true);

.....

define('_PS_DEBUG_PROFILING_', true);

So after that you can see some useful debug information and a lot information like MySQL strings, classes, files and etc. It will help you to understand. 因此,在此之后,您将看到一些有用的调试信息以及很多信息,例如MySQL字符串,类,文件等。它将帮助您理解。

Hope it helps you a little. 希望它能对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM