Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

debug Javascript with webwork

Posted on 2009-03-31
3
Medium Priority
?
421 Views
Last Modified: 2012-05-06
I have a jsp page, it contains following line:

<script type="text/javascript" src="allSoftwareScript.action"></scrip>

In allSoftwareScript.action, it returns a jsp page called script.jsp whose contentType is Javascript.

Does that mean Javascript would be loaded at run time or in other words, dynamically. How could I debug this script.jsp page?
0
Comment
Question by:JianJunShen
  • 2
3 Comments
 
LVL 92

Assisted Solution

by:objects
objects earned 2000 total points
ID: 24027533
yes it would be loaded at runtime
you would debug in the browser using firebug

0
 

Author Comment

by:JianJunShen
ID: 24027605
But how to debug in firebug? I have installed firebug. If it is embeded javascript, it is easy to do. I put a break point before <script type="text/javascript" src="allSoftwareScript.action"></scrip>, and reload the page. In firebug, it does not stop.

0
 

Accepted Solution

by:
JianJunShen earned 0 total points
ID: 24029238
I find the way to debug the Javascript by firebug. Above the menu(which has console,html, script and so on) there is a combox after selecting script. All the javascript within the scope is shown. Just clike one of them, put break point and finally reload the page.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
This article discusses how to create an extensible mechanism for linked drop downs.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question