Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [atf-dev] RE: ATF debugger does not suspend on breakpoint

Well, there are few issues.
Originally I had an eclipse project running my application. Then I learned
about ATF that supports debugging Javascript. So I installed the plugin in
my existing eclipse setup. Then I took the following steps

1. Based on ATF user guide, I configured an Ajax Runtime, I don't know if I
should or not, but to be safe I did it.
2. I did not create a new ATF project inside eclipse
3. Opened my .js file in eclipse and add breakpoints
4. I launch IE or Mozilla outside eclipse (as I used to before installing
the ATF Plugin) and ran through a used case
5. Expecting to suspend on breakpoint in my Javascript file, but did not.

Couple of things to note:
1. We are using MVC model and therefore we have several .jsp, .js files
2. If I open a .js file in eclipse and right click then I don't see 'Debug
as -> Debug in Mozilla' menu option
3. However, if I open a .jsp file I see 'Debug in Mozilla' option and when I
click on it I get the following error:
	Error launching web application
	Reason:
	Selected file must be inside of WebContent directory.

So the question is:
Do I need to create an ATF project for my .jsp and .js files besides the one
for my .java classes? If so what structure should I use or steps should I
follow for creating the project and what files should I import or link?

Hope that clarifies. I appreciate all the help.

Thanks,

________________________________________
From: atf-dev-bounces@xxxxxxxxxxx [mailto:atf-dev-bounces@xxxxxxxxxxx] On
Behalf Of Javier Pedemonte
Sent: Friday, August 24, 2007 11:29 AM
To: AJAX Toolkit Framework discussion
Subject: Re: [atf-dev] RE: ATF debugger does not suspend on breakpoint

On 8/24/07, Rasoul Firoz <rfiroz@xxxxxxxxxxxx> wrote:
I can add
breakpoints to my Javascript, but when I ran the application it doesn't
suspend on breakpoint.

Please provide some more information.

You said you created a new ATF project, and added Dojo as the toolkit.  Then
you imported into the project the rest of your HTML and JS files that use
Dojo? 

How did you run the web app?  The best way is to right click on the main
HTML file, and select "Debug in Mozilla".  This will present you with a
dialog  which asks you to set up a server.  You can just select the "HTTP
Preview" server if you don't already have one running on your machine. 
After that, your web app runs in the browser, and should stop at any
breakpoints. 


Javier Pedemonte
ATF Developer





Back to the top