Breakpoints in Javascript [message #219468] |
Wed, 20 August 2008 17:11 |
Eclipse User |
|
|
|
Originally posted by: david.mcneill.ge.com
Hi,
I posted a similar message a few days ago, but it seems to have
disappeared, so I apologize if you've seen this before.
We have an existing Java project created in Eclipse 3.1. We recently added
some third-party javascript libraries to the project, for use in our JSPs.
We need to be able to debug these libraries, to allow us to customize them
and to fix some bugs we've run into.
I've downloaded Ganymede EE version, and it loads my existing workspace
without any problems. The interface is awesome, but I can't set a
breakpoint in the javascript code. When I try, it just offers me the
chance to create a bookmark. That would be useful, too, but it's not what
I need most. Inserting a debugger; statement didn't have any effect,
either.
The introductory tutorial by Bradley Childs that I saw said debugging
worked the same as in java, but it doesn't on my machine. Has anyone been
able to get this to work?
Suggestions, alternatives, and workarounds also welcome.
thanks,
Dave M
|
|
|
|
Re: Breakpoints in Javascript [message #219541 is a reply to message #219494] |
Thu, 21 August 2008 22:59 |
Eclipse User |
|
|
|
Originally posted by: david.mcneill.ge.com
Thanks for the reply. I've seen other people mention Firebug, but I didn't
know there was a version for IE. (Our company standard is still IE6).
I'm not sure what "normal eclipse" means. I have the latest release, with
the Javascript Developer Toolkit built into it. It seems odd that I can't
use it.
|
|
|
|
Re: Breakpoints in Javascript [message #219781 is a reply to message #219541] |
Fri, 29 August 2008 10:54 |
Bartosz Leper Messages: 4 Registered: July 2009 |
Junior Member |
|
|
Hi Dave,
Dave M wrote:
> Thanks for the reply. I've seen other people mention Firebug, but I didn't
> know there was a version for IE. (Our company standard is still IE6).
If it's IE, the best thing you can do is to download a free version of
Visual Studio (it's called Visual Web Developer Express, or sth like
that). The free version theoretically allows you to debug scripts only on
IIS-based applications, but there's a hack around this: set up a new
project, and run it in a browser. Then, when IE pops up, just point to
your service. :)
Let me know if it helps you.
Oh, and BTW, you still have to remember about one ugly bug that MS have in
its JS interpreter: you can't set a breakpoint on a first line of any
anonymous function. So you'll have to fiddle with the code temporarily.
You can't override it with any debugger, it's the JS core that is messed
up, unfortunately. :/
Greets,
Bartek Leper
|
|
|
Powered by
FUDForum. Page generated in 0.02414 seconds