Re: Venkman on Firefox 1.0
"7stud" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.jsdebugger |
|---|---|
| Message-ID | <[email protected]> |
"Gary van der Merwe" <[email protected]> wrote in message news:[email protected]... > Hi > > I'm realy confused about running Venkman on Firefox 1.0 > > https://bugzilla.mozilla.org/show_bug.cgi?id=247507 version is trunk, > but has the keywords "fixed-aviary1.0" > > My agent string is: > Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) > Gecko/20041030 Firefox/1.0RC2 > > I tried installing http://www.hacksrus.com/~ginda/venkman/venkman-0.9.79.xpi > - Nothing happend. Tried - running "firefox -venkamn" did not see > menuitems. > > I tried installing https://bugzilla.mozilla.org/attachment.cgi?id=154113&action=view > - Got an error message when I closed Firefox - saying that Firefox > only works on 0.9 or 0.9+ > > Is it at all possible to get venkman working on aviary1.0 or do I need > to get trunk0.9? > > Gary The bad news is, even if you get Venkman installed it doesn't work. Venkman installed fine for me on FF1.0pr. However, when I tried to work through a basic tutorial, the debugger's behavior was erratic and incomprehensible. See here: > I'm trying to do an example in the Javascript debugger tutorial here(page 3 > "Basic Debugging"): > http://www.svendtofte.com/code/lear...kman/basics.php > > Here is the example script: > Code: > > 3) <script> > 4) var a = 1; > > 5) function test(a) { > 6) var t = "passed : "; > 7) return t + a; > 8) } > > 9) var b = test(a); > 10) document.write("<p>" + b + "</p>"); > 11) </script> > > > > I clicked the Stop button in the debugger and reloaded the script, and Line > 4 was highlighted in yellow(the tutorial says it should be line 3). I typed > 'a' into the Interactive Session input line, and hit return. I got an error > message sayng 'a' was not defined. So far, so good. > > I clicked on Step Into and then line 5 was highlighted. I typed 'a' into the > Interactive Session input line again, and hit return. I got this: > > < 001: a > >$[0] = [void] void > > The tutorial says I should get a value of 1 for a. That doesn't appear to be > giving me a value of 1 for a. > > Next, I clicked Step Into again, and line 9) was highlighed in yellow. I > typed in 'a' again just to see what would happen, and I got the same thing: > > < 0001: a > >$[0] = [void] void > > Once again, it doesn't appear that's a value of 1 for a. I typed in 'b', and > as expected I got an error saying b was not defined. Then, I typed in > 'test(a)'. The tutorial says I should've got: > > passed : 1 > > for test(a). But, I got: > > <0001: test(a) > > $[1] = [string] "passed : undefined" > > What the heck is going on? > > I clicked Step Into again and it jumped up to line 4). Huh? Why not line 5)? > I entered 'a' in again, and this is what I got again: > > < 0001: a > >$[0] = [void] void > > I clicked Step Into again and advanced to line 5). I typed 'a' in again: > > <0001: a > >$[0] = [integer] 1 > > Finally!! A value of 1 for 'a'. Can anyone explain this debugger's behavior? > Why no value for 'a' sooner? > > Then, when I click Step Into successively after that, this is what happens: > > line 9) > line 6) > line 7) > line 9) > line 10) > > It just doesn't seem to make sense. The whole sequence is: > > 4) > 5) > 9) > > 4) > 5) > 9) > > 6) > 7) > 9) > 10) >