Joomla! Discussion Forums



It is currently Mon Nov 23, 2009 5:47 pm (All times are UTC )

 




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: XDebug / debugging
Posted: Fri Nov 06, 2009 11:04 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Feb 14, 2008 7:35 pm
Posts: 18
Finally getting my way into using a proper development environment for Joomla. I went through the doc on getting Eclipse to work with Joomla - setting ports, editing php.ini, everything in that doc - but the problem is that even with XDebug set up (with the PHP in xampp) it doesn't recognize break points.

There's some communication going on as when I refresh the web page in the browser, it causes a little activity in eclipse. But it completes without stopping at break points, showing no information on variables.

Any ideas on where to look at?


Top
  E-mail  
 
 Post subject: Re: XDebug / debugging
Posted: Sat Nov 07, 2009 4:01 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4477
Location: Toronto, Canada
carrotwax wrote:
Finally getting my way into using a proper development environment for Joomla. I went through the doc on getting Eclipse to work with Joomla - setting ports, editing php.ini, everything in that doc - but the problem is that even with XDebug set up (with the PHP in xampp) it doesn't recognize break points.

There's some communication going on as when I refresh the web page in the browser, it causes a little activity in eclipse. But it completes without stopping at break points, showing no information on variables.

Any ideas on where to look at?

You sure you're hitting the breakpoint?

I would suggest starting with a small test file first (a simple loop or something). Once you've established PHP debugging, then move on to debugging Joomla.

Ian

_________________
Joomla! Leadership Team - Production Working Group
Joomla! Bug Squad Coordinator
Joomla! Developer Documentation Team
Please don't say something 'isn't working'. Explain what you tried, and what happened as a result.


Top
   
 
 Post subject: Re: XDebug / debugging
Posted: Sat Nov 07, 2009 5:15 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Feb 14, 2008 7:35 pm
Posts: 18
Yes, I tried the small test file first. And no, it doesn't stop at the breakpoint. I even have the option set where it breaks on the first line of code, but it still doesn't stop.


Top
  E-mail  
 
 Post subject: Re: XDebug / debugging
Posted: Sat Nov 07, 2009 5:23 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4477
Location: Toronto, Canada
carrotwax wrote:
Yes, I tried the small test file first. And no, it doesn't stop at the breakpoint. I even have the option set where it breaks on the first line of code, but it still doesn't stop.

hmmm... I wonder if you have your path map setup right?

Ian

_________________
Joomla! Leadership Team - Production Working Group
Joomla! Bug Squad Coordinator
Joomla! Developer Documentation Team
Please don't say something 'isn't working'. Explain what you tried, and what happened as a result.


Top
   
 
 Post subject: Re: XDebug / debugging
Posted: Sat Nov 14, 2009 11:49 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat May 09, 2009 1:54 pm
Posts: 2
Dear Ian,
I have the same problem presented by carrotwax. Could you, please, explain with more details what you mean saying "I wonder if you have your path map setup right".

I followed exactly what is presented in http://docs.joomla.org/Setting_up_your_ ... evelopment but Breakpoints are not working (neither the Eclipse option "Break at First Line").

Thanks a lot,
Andrea


Top
  E-mail  
 
 Post subject: Re: XDebug / debugging
Posted: Sat Nov 14, 2009 12:09 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat May 09, 2009 1:54 pm
Posts: 2
Dear Ian and carrotwax,
with few minutes work I solved the issue downloading from:
http://www.xdebug.org/download.php

a recent version for xdebug (I got "php_xdebug-2.0.5-5.2-nts.dll" file) and updating XAMPP PHP extensions with it as described in:
http://robsnotebook.com/php_debugger_pdt_xdebug

Ciao, Andrea


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

Quick reply

 



Who is online

Users browsing this forum: asadallahi, nailson_imgn, ooffick, sx_codank, treehugger73 and 36 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group