Solved

debug Javascript with webwork

Posted on 2009-03-31
3
395 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 500 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

777 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