Search the Community
Showing results for tags 'xdebug'.
Found 3 results
Hi all, I'm a rookie in prestashop dev, and i would like to be able to debug and and breakpoint on my IDE. i used NetBeans and Xdebug on others php projects, but with prestashop project Xdebug doesn't work. Is there any documentation about this configuration ?? What is the list of tools needed to debug PrestaShop ? Except Firebug... Thanks in advance
Debugging PrestaShop modules with Eclipse PDT and XDebug
presty posted a topic in Core developersHi, I'm developing some modules with Eclipse PDT and I would like to know if anyone has an environment that allows to debug custom modules from Eclipse. What I have done so far: Installed XAMPP in windows with XDebug. Installed Eclipse PDT and configured a PHP server and PHP Debuger. Configured XDebug in Eclipse to accept remote sessions (Windows>Preferences>PHP>Debug>Installed Debuggers>XDebug: Accept remote sessions = prompt) Created a PHP project containing the PrestaShop SVN project. This version has to be replicated exactly in the Server, I use FileSync extension for the sync part. Created a PHP project containing my module. This module is also Synced to the /modules folder in the server using FileSync extension. What I have been able to do is to Debug the core of PrestaShop when I open a browser and acces the server (http://localhost/). When I do that, Eclipse prompts if I want to start a debug session and then I can go line by line debugging the code, starting at index.php. The problem is that I'm not able to debug code from my custom modules. That means that when I open the browser and I go to a page which is rendered by my module, Eclipse does not stop in my breakpoints. Does anyone know how to solve the problem? How are you debugging your custom modules? http://andrei.gmxhom...sync/index.html
I am trying to debug through Prestashop 22.214.171.124. But my debugging session always ends before I reach line 107 in \config\config.inc.php Here are line 106 and 107: $defaultCountry = new Country(Configuration::get('PS_COUNTRY_DEFAULT'), Configuration::get('PS_LANG_DEFAULT')); Context::getContext()->country = $defaultCountry; The problem comes from the ObjectModel constructor (base class of Country), the debugging sessions ends as soon as it reaches it. Any idea why might cause this? I am new to Prestashop, so the solution might be straightforward. Thank you.