473,396 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

window.dump() broken?

Doesn't print to the java console in either IE6 or FF1.5

Is there a better way aside from alert()?
Feb 22 '06 #1
7 1391
VK

David Gravereaux wrote:
Doesn't print to the java console in either IE6 or FF1.5

Is there a better way aside from alert()?


Firefox:
Tools > JavaScript Console

Opera:
Tools > Advanced > JavaScript console

Internet Explorer:
Install JScript Debugger from:
<http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&DisplayLang=en>

After that you can use JScript [Debug] object wich represents dubugger
output and [debugger] statement which is equivalent of breakpoint:

for(i = 1; i<5; i++) {
// Print i to the Output window.
Debug.write("loop index is " + i);
// Wait for user to resume.
debugger
}

Feb 22 '06 #2
VK

VK wrote:
Internet Explorer:
Install JScript Debugger from:
<http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&DisplayLang=en>


I forgot to mention that new menu option adds up to View > Script
Debugger (not in Tools). I remember I nearly got crazy before I found
it :-)

Feb 22 '06 #3
David Gravereaux wrote:
Doesn't print to the java console in either IE6 or FF1.5

Is there a better way aside from alert()?


For Mozilla-based browsers, see
<http://developer.mozilla.org/en/docs/DOM:window.dump>, specifically
the "Notes" section.

HTH,

-- David

Feb 22 '06 #4
On 22 Feb 2006 06:01:35 -0800, "David Wahler" <dw*****@gmail.com>
wrote:
David Gravereaux wrote:
Doesn't print to the java console in either IE6 or FF1.5

Is there a better way aside from alert()?


For Mozilla-based browsers, see
<http://developer.mozilla.org/en/docs/DOM:window.dump>, specifically
the "Notes" section.


I did both and no dice in firefox.
Feb 22 '06 #5
David Gravereaux wrote:
Doesn't print to the java console in either IE6 or FF1.5 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Works as designed.
Is there a better way aside from alert()?


As was said.
PointedEars
Feb 22 '06 #6

David Gravereaux wrote:
Doesn't print to the java console in either IE6 or FF1.5


window.dump is not supposed to write to the Java console, nor to the
JavaScript console.
It will dump/write to a console window on your system (e.g. a command
line window under MS Windows) if you start Mozilla with the right
parameters.
Not sure where you got the idea that IE supports window.dump at all.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Feb 22 '06 #7
David Gravereaux wrote:
Doesn't print to the java console in either IE6 or FF1.5

Is there a better way aside from alert()?


Take a look on how to enable it here:
<URL:http://developer.mozilla.org/en/docs/window.dump>, I've just
googled the url.

There are some debug extensions for JavaScript (have you seen Venkman
<URL:http://www.mozilla.org/projects/venkman>?), I preffer the old
alert, document.title = "blabla" and document.write haha :)
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com
Feb 22 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Peter Kleiweg | last post by:
This is weird... Running small Python scripts, now and again a window dump is created, and saved as the module name without the extension. This happens on Linux. The dumped file is a PostScript...
31
by: Benno Bös | last post by:
If I use the following construct in the frame "main" for a link to an extern site: <A HREF="http://www.any.xy" TARGET="extern"> the Browser is creating the window "extern", loading the page...
6
by: John Liu | last post by:
I've two questions, they may or may not be related - 1. I copied the entire data directory from postgreSQL 7.3.2 (AIX4.3) to the installation postgreSQL 7.3.4 (AIX5.1), the same filesystem setup....
4
by: arizvi | last post by:
Hi, My program crashes when it reaches a certain line. There is nothing wrong with that particular line as I have changed it to something simple like i=0, and it still crashes. If I remove...
6
by: bwucke | last post by:
Short: One window writes to <input>, the other reads the same <input>. Is it a race condition or are the reads/writes atomic? Long: My app has an option to print results in a nicely formatted,...
3
by: victorzou | last post by:
hi all ; I am new guy! I need to know whether the webpage is the top active IE window with javascript in the webpage,when I open 2 or more IE window. tks in advance! victor.zou
3
by: =?Utf-8?B?R3JlZyBN?= | last post by:
Hello, I'm running an asp.net, intranet web application using .net framework 1.1 on IIS5.1 / 6.0. Through the web application, I would like to press a button on the web page, have another window...
14
by: Sheldon | last post by:
Hi, Can anyone tell me why this script file.c and file.h causes a core dump when it is compiled and run? Any help is appreciated. Sheldon snip....
24
by: Jeremy J Starcher | last post by:
While reading c.l.j, I've noticed that some people prefer and indeed even recommend the use of "window.alert()" over "alert()". I can't find any technical reason to make this distinction, and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.