Bug 296951 - I cannot debug for JavaScript like in "Debug on server".
Summary: I cannot debug for JavaScript like in "Debug on server".
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: ATF (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-04 13:39 EST by for_rak CLA
Modified: 2020-05-07 10:51 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description for_rak CLA 2009-12-04 13:39:07 EST
Server:glassfish v3 
Eclipse:Galileo
Project:Dynamic Web Project
XULRunner:1.9.1
java:1.6.0_17

I installed ATF according to the following instruction.

http://wiki.eclipse.org/ATF/Installing

I tried debug for JavaScript like in "Debug on server" for Java.
(It means that I don't set BreakePoints on deployed files but on local files.)

I have seen the demo movie "JavaScript Debugger". 
So I knew followin process.

Right click a html file -> debug in Mozilla -> "Defiine a New Server"...

However, I couldn't find "Defiine a New Server".
Debuger (its target is a "Project file") started automatically.

I cannot debug for JavaScript like in "Debug on server" for Java.
Comment 1 Jacek Pospychala CLA 2009-12-05 19:24:24 EST
hi,
that demo is outdated a bit, as we simplified the way how debug is launched. For particular html file you only choose Debug as > Debug in Mozilla and that's it.

If you want to debug it on a server, then you should first deploy it to the server using WebTools (or any other method you like) and then open Debug configurations from Run main menu and choose to debug your applicatio URL in Mozilla.
Comment 2 for_rak CLA 2009-12-06 02:38:15 EST
Thank you very much for your sending me the answer.

I have already tried the method recommended by you.
>If you want to debug it on a server, then you should first deploy it to the
>server using WebTools (or any other method you like) and then open Debug
>configurations from Run main menu and choose to debug your applicatio URL in
>Mozilla.

However, the process set forth bellow couldn�ft be performed.

I want to set BreakPoints on an editing local file, and deploy it on a server, and debug it on the server.

However, according to your recommendation, only BreakPoints set on the file represented in the �gScripts�h tab can operate.
Specifically, when I set a BeakPoint on the editing local file, the debug process on the server doesn�ft stop at the BreakPoint.
Consequently it seems that BreakPoints on the editing local file don�ft have any function.
Comment 3 Jacek Pospychala CLA 2009-12-07 10:14:23 EST
ok I see your point.
What kind of server do you use?
Comment 4 for_rak CLA 2009-12-07 23:28:19 EST
I try to use following.
* GlassFish 
* webOTX (customized GlassFish)
Comment 5 for_rak CLA 2009-12-14 19:06:11 EST
I would like to additionally tell the version of servers reported.

*Glassfish : v3 b63
*webOTX : v8.21 (Glassfish v2.x)

Is this report helpful for you ?
Comment 6 Jacek Pospychala CLA 2009-12-16 10:40:26 EST
yes, thanks!
However at the moment it's hard for me to say when this feature could be implemented. :-(

Implementing this would require some knowledge on server launchers and specifically how they map local workspace resources to URLs. Once we know URL for each workspace resource, it is quite easy to register breakpoints.
Comment 7 Jacek Pospychala CLA 2010-01-06 09:26:17 EST
Rising priority, because this feature was asked again recently.