Re: What do people use Venkman for?

Robert North <[email protected]>
Newsgroups gmane.comp.mozilla.devel.jsdebugger
Organization Zen Internet
Message-ID <[email protected]>
7stud wrote:
> I can't figure Venkman out.  Here is a 4 line script I am trying to Step
> Into:
> 
> 1) <html>
> 2) <head>
> 3) <title>test</title>
> 4) <script type="text/javascript" language="javascript">
> 
> 5)  var a=1;
> 6)  var b=5;
> 7)  var c=10;
> 8)  document.write("<div>" + (a+b) + "</div>");
> 
> 9) </script>
> </head>
> <body>
> </body>
> </html>
> 
> When I click on Stop in Venkman and then reload a page with the above script
> on it and nothing else, Venkman halts the execution at line 5.  Then, when I
> successively click on Step Into, these are the lines the debugger moves to:
> 
> 5 (start) a, b, and c are undefined.
> 6 : a is 'void' and b, c are undefined.
> 7: a,b are 'void', c is undefined.
> 5: what the??  a,b,c are 'void'
> 6: a=1 and b,c are void
> 7: a=1, b=5, c is void
> 8: a=1, b=5, c=10
> 
> Is that what happens to you when you step through that simple script?  Is
> Venkman broken?  How can anyone use this debugger if it exhibits that kind
> of behavior?
> 

Just a quickie....

I tried the other script you were stuck on. I think I know what's going 
on.....

I think the debugger is working, but it does a first pass over the code, 
creating global variables, and setting them to null.
Then, it goes back and runs the code *properly*.
I've seen other debuggers do similar things....
Most people seem to accept this kind of idiosyncrasy can muddle on.

I don't think it's something to worry about.
Just ignore the tracing till it skips back to the top of the code!

Bye
	-Rob.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.