File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Languages and the fly likes Debugging JavaScript and Freemarker Code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "Debugging JavaScript and Freemarker Code" Watch "Debugging JavaScript and Freemarker Code" New topic

Debugging JavaScript and Freemarker Code

Fred Victa
Ranch Hand

Joined: May 01, 2008
Posts: 173
What tools can I use to debug JavaScript code and Freemarker template code? Does anyone have any tips for debugging JavaScript code and Freemarker template code?
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

hi Fred,

You can use FireBug addon with your firefox to debug your JavaScript.

I am not sure about Freemarker as of now. Don't know even is it possible right now.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
JavaScript runs on the client, whereas FreeMarker is interpreted on the server, so most debugging approaches will work for both as they're focused on one side but not the other. I think IDEs like IntelliJ, Eclipse and NetBeans allow combined client and server debugging.
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

Im' not really sure what are you doing to achieve but since you mentioned JavaScript and FreeMarker, have a look at Handlebars.js or Dust.js
Maybe both will ring a bell to you?
I agree. Here's the link:
subject: Debugging JavaScript and Freemarker Code
It's not a secret anymore!