Solved

debug Javascript with webwork

Posted on 2009-03-31
3
389 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
Comment Utility
yes it would be loaded at runtime
you would debug in the browser using firebug

0
 

Author Comment

by:JianJunShen
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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 …
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now