Kurt
You can't just debug a JavaScript file. In Firefox when you type in a URL
that points to a JavaScript file, the source of the JavaScript file is
shown. When ATF debugs a JavaScript file, it runs in the same engine that
is in Firefox. That is the reason that "Debug in Mozilla" only show up for
a HTML file.
There is limited integration between the PHP IDE and ATF at this point.
This is one of the things on the list to work on. There is no integration
between ATF's JavaScript Debugger and the PHP debugger. ATF and PHP use
different server deployment mechanism. ATF uses base eclipse Web Tools
server support and PHP uses it own deployment mechanism. You can right
click on a html file in a PHP project and do a "Debug in Mozilla". The
project including the PHP files will be deployed out to a HTTP server. Do
no use the embedded HTML preview server since that server doesn't support
PHP.
It is interesting that we never added a file association for "Debug in
Mozilla" for a PHP file. There is a very difficult problem with debugging
PHP files that contains/generate HTML and JavaScript. ATF's JavaScript
debugger runs in the context of the browser, so the HTML/JavaScript that
is delivered to the browser does not match what is in the PHP file. In
this cases we don't know how to map the breakpoints in the PHP file to the
location when running in the browser. It should be possible for the PHP
file to contain some HTML with a JavaScript src attribute that loads a
JavaScript file and to have breakpoints in the JavaScript file. I'm a
little surprise that nobody has ask for this capability before. I'm going
to open a bug for this, since it gets us a little more integration between
the PHP IDE and ATF.
Thanks
Bob
Robert Goodman
IBM Emerging Technologies
[EMAIL PROTECTED]
512-838-8824 T.L. 678-8824
kurt miller <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
10/02/2007 02:03 PM
Please respond to
AJAX Toolkit Framework discussion <[email protected]>
To
[email protected]
cc
Subject
[atf-dev] ATF Config?
I'm not a developer so if there is a more appropriate
newsgroup then
please direct me there.
I'm fairly new to Eclipse - though it doesn't feel
that way given the
number of hours/days I've spent getting things
configured and working :-)
I'm confused about file associations in ATF.
Dojo is my AJAX toolkit.
In Eclipse, from the PHP perspective, when I right
click on a .js file
and select Debug As..., there is no 'Debug in Mozilla'
option listed.
If I do the same for a .html file (as in the demo)
then the 'Debug in
Mozilla' is available. What am I missing conceptually
here? Shouldn't
I be able to debug any javascript within any PHP
project? How do I
configure ATF to debug a .js file?
Thanks,
-km
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who
knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433
_______________________________________________
atf-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/atf-dev
_______________________________________________
atf-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/atf-dev