Closed
Bug 253995
Opened 20 years ago
Closed 17 years ago
venkman seems to step into if statement and also into the else statement
Categories
(Other Applications Graveyard :: Venkman JS Debugger, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 156861
People
(Reporter: henning.pingel, Assigned: rginda)
Details
Attachments
(1 file)
771 bytes,
text/html
|
Details |
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 Using the "Step Into" command, Venkman (0.9.80 Mozilla 1.6 / 0.9.81 Mozilla 1.6 / 0.9.82 Mozilla 1.7) sometimes enters an if-block and, after processing the lines that should be executed when the if-condition is true, Venkman jumps to the last line of the else-block that belongs to the same if-statement. The line is not executed, but the yellow bar pretends that the line is processed. This behaviour is very irritating while debugging a complex js-library. A code example for testing this behaviour is attached below. Reproducible: Always Steps to Reproduce: 1. Save HTML-Code below to local file. 2. Execute HTML-file in Mozilla. 3. Open Venkman. Press Stop-Button in Venkman. 4. Reload page in browser. 5. Use "Step Into" to step through all commands. 6. If function is executed with parameter 1 - the error happens. It seems that the issue only occurs if the line "if_test(0);" is there. <html> <head></head> <body> <script> if_test(0); if_test(1); function if_test(e){ var dummy = 0; var dummy2 = 0; if (e == 1) { dummy = 10; dummy2 = 5; if (dummy == 10) { dummy = 10; dummy2 = 5; alert("alert1"); } else { alert("alert2"); alert("alert3"); alert("alert4"); alert("alert5"); } } else { dummy = 11; dummy2 = 6; } dummy = 1; } </script> </body> </html> Actual Results: After Venkman has the yellow bar on alert("alert1"); the yellow bar jumps to the last line of the else-block alert("alert5"); Expected Results: The else-block should not be processed if e == 1, instead only the if-block.
Reporter | ||
Comment 1•20 years ago
|
||
Updated•20 years ago
|
Product: Core → Other Applications
Comment 2•18 years ago
|
||
This looks like the same as bug 156861, and both look very much like a JS engine problem of some form.
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•