window.dump() broken?

D

David Gravereaux

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

Is there a better way aside from alert()?
 
V

VK

David said:
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/...e0-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
}
 
M

Martin Honnen

David said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top