Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to debug the server-side Ajax application like the joomla installation application?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
javier gómez  
View profile  
 More options Jul 20 2012, 12:38 pm
From: javier gómez <javier.gomez.co...@gmail.com>
Date: Fri, 20 Jul 2012 10:38:54 -0600
Local: Fri, Jul 20 2012 12:38 pm
Subject: How to debug the server-side Ajax application like the joomla installation application?

Hi,

In my Google Summer of code project I'm working in the installation
application of Joomla!. When I have any error I can go debugging through
every step with XDebug and my IDE, but what can I do when I have an AJAX
call?

When I do an AJAX call I'm actually creating two instances of Joomla!, one
is the client (the one in my browser witch I know how to debug) but the
other is happening in my server, that will process the response of my
petition. I would like to go step by step debugging the creation of that
response, adding breakpoints and etc, but I don't know how to do that. Any
recommendation?

Thanks
--
Javi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Dexter  
View profile  
 More options Jul 20 2012, 12:48 pm
From: Mark Dexter <dextercow...@gmail.com>
Date: Fri, 20 Jul 2012 09:48:29 -0700
Local: Fri, Jul 20 2012 12:48 pm
Subject: Re: [jcms] How to debug the server-side Ajax application like the joomla installation application?
I'm not sure if this will help, but I have found it helpful sometimes
to use a JavaScript debugger to understand better what is happening
inside an AJAX cycle. For example, Firebug or Chrome have JS
debuggers. I'm not sure how to debug the PHP part of an AJAX cycle.
This link also looks interesting:
http://sixrevisions.com/web-development/how-to-debug-php-using-firefo....
Good luck. Mark

On Fri, Jul 20, 2012 at 9:38 AM, javier gómez


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Moffatt  
View profile  
 More options Jul 20 2012, 1:22 pm
From: Sam Moffatt <pasa...@gmail.com>
Date: Fri, 20 Jul 2012 10:22:05 -0700
Local: Fri, Jul 20 2012 1:22 pm
Subject: Re: [jcms] How to debug the server-side Ajax application like the joomla installation application?
Depending on your IDE you can configure it to have breakpoints with
something like XDebug and have the processes connect to the IDE on the
launch. I'd refer to the manual for the tool that you're using to see
how that operates but that would be an option for debugging AJAX calls
at least with XDebug.

Cheers,

Sam Moffatt
http://pasamio.id.au


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brad Gies  
View profile  
 More options Jul 20 2012, 2:15 pm
From: Brad Gies <rbg...@gmail.com>
Date: Fri, 20 Jul 2012 11:15:10 -0700
Local: Fri, Jul 20 2012 2:15 pm
Subject: Re: [jcms] How to debug the server-side Ajax application like the joomla installation application?

Javier.... I debug Ajax calls all the time (firebug in Firefox) and with
Eclipse/XDebug on the server side....

I forget the exact configuration.... but I think you have to have remote
debugging enabled. And what I do is debug a normal page first to get
Eclipse attached (launch the index.php page in Eclipse)... and then use
the same session for Ajax debugging.... Sorry.. I know that's not very
specific, but at least you know it's possible.

If you are still having problems, send me a direct email (we can chat on
QQ/Yahoo/MSN), and I'll walk you through it. Might just have to run
though it myself to remember the exact steps I take to enable it. You
might just need the settings for the Launch/Debug :)

Brad

On 20/07/2012 9:38 AM, javier g mez wrote:

--
Sincerely,

Brad Gies
----------------------------------------------
bgies.com              maxhomevalue.com
idailythought.com      greenfarminvest.com
----------------------------------------------


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
javier gómez  
View profile  
 More options Jul 21 2012, 5:45 pm
From: javier gómez <javier.gomez.co...@gmail.com>
Date: Sat, 21 Jul 2012 15:45:39 -0600
Local: Sat, Jul 21 2012 5:45 pm
Subject: Re: [jcms] How to debug the server-side Ajax application like the joomla installation application?

Thanks for all your replies ^_^

Actually I'm able to debug with my IDE Phpstorm while navigating with the
browser. That really rocks! but it only stops at breakpoints when is the
application generated by my browser, not when is the aplication running due
to the AJAX request.

I will continue investigating thanks Mark and Sam and thanks for your ofer
Brad, I will contact you If I don't find the answer.

On 20 July 2012 12:15, Brad Gies <rbg...@gmail.com> wrote:

--
Javi

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Imanol Pérez Iriarte  
View profile  
 More options Jul 22 2012, 5:23 am
From: Imanol Pérez Iriarte <eltigrequehaye...@gmail.com>
Date: Sun, 22 Jul 2012 11:23:50 +0200
Local: Sun, Jul 22 2012 5:23 am
Subject: Re: [jcms] How to debug the server-side Ajax application like the joomla installation application?

Hi, for this purpose i'm using eclipse + xdebug + firebug all running at
localhost. With firebug you can see the post headers, the ajax call and the
server response. Also I'm been able to put a breackpoint at the function on
the controller who generates the ajax response. Obviously you have to start
debugging from index.php.
If you have wish, i could grab some screenshoots of the process.
Hope it helps,

2012/7/21 javier gómez <javier.gomez.co...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JSamir  
View profile  
 More options Jul 22 2012, 4:31 pm
From: JSamir <samirabul...@gmail.com>
Date: Sun, 22 Jul 2012 13:31:11 -0700 (PDT)
Local: Sun, Jul 22 2012 4:31 pm
Subject: Re: [jcms] How to debug the server-side Ajax application like the joomla installation application?

As far as I know, the debug is working in that manner that YOUR IDE is
waiting for a connection on a port you specified in php.ini and in the IDE
settings. On your first debug run, your browser uses some params in the URl
to tell xdebug "now i need debug".
When you use Ajax, you dont start a new debug session, and therefore xdebug
cant work. Thats just an info, not a solution.

I would try to send some debug info in the url with the ajax request, maybe
xdebug starts a new session then.

Tell us how you solved it if you do  ;)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
javier gómez  
View profile  
 More options Jul 23 2012, 6:09 pm
From: javier gómez <javier.gomez.co...@gmail.com>
Date: Mon, 23 Jul 2012 16:09:46 -0600
Local: Mon, Jul 23 2012 6:09 pm
Subject: Re: [jcms] How to debug the server-side Ajax application like the joomla installation application?

That has a lot of sense JSamir. Now I understand why!!!
Thanks ^_^

I have found some info:
If you want to debug a script started through a web browser, simply add
XDEBUG_SESSION_START=session_name as parameter to the URL. Refer to the
next section to read on how debug sessions work from within a browser
window.

Continues at: http://xdebug.org/docs/remote#browser_session

On 22 July 2012 14:31, JSamir <samirabul...@gmail.com> wrote:

--
Javi

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JSamir  
View profile  
 More options Jul 23 2012, 6:16 pm
From: JSamir <samirabul...@gmail.com>
Date: Mon, 23 Jul 2012 15:16:26 -0700 (PDT)
Local: Mon, Jul 23 2012 6:16 pm
Subject: Re: [jcms] How to debug the server-side Ajax application like the joomla installation application?

Hi Javier,

thats what I meant by "send some debug info with the request".

Would be nice if you give us a howto if it works for you.

Am Dienstag, 24. Juli 2012 00:09:46 UTC+2 schrieb Javier Gómez:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
piotr_cz  
View profile  
 More options Jul 24 2012, 5:13 am
From: piotr_cz <pkoniec...@hotmail.com>
Date: Tue, 24 Jul 2012 02:13:45 -0700 (PDT)
Local: Tues, Jul 24 2012 5:13 am
Subject: Re: How to debug the server-side Ajax application like the joomla installation application?
You may try out
'FirePHP - Firebug Extension for AJAX Development': http://www.firephp.org/

On Jul 24, 12:09 am, javier gómez <javier.gomez.co...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Javier Gómez  
View profile  
 More options Jul 26 2012, 11:29 pm
From: Javier Gómez <javier.gomez.co...@gmail.com>
Date: Thu, 26 Jul 2012 20:29:23 -0700 (PDT)
Local: Thurs, Jul 26 2012 11:29 pm
Subject: Re: How to debug the server-side Ajax application like the joomla installation application?

I know this is not the answer that you were waiting because I haven't solve
it not by firephp or other cool solution. Basically what i have done is
using the not JSON controller of the installation aplication (setup.php
instead of setup.json.php) to debug it with the browser. Something like:
http://localhost:8080/joomla/installation/index.php?task=setup.instal...[]=8

What works for the non json controller basically works for the other. That
is enought for my needs by now, but if I test firephp in the future I
promise to update this thread.

Thanks all ^_^


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »