Closed
Bug 399717
Opened 17 years ago
Closed 6 years ago
if and else condition executed when stepping through code
Categories
(Other Applications Graveyard :: Venkman JS Debugger, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: ttopwells, Assigned: rginda)
Details
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7 Build Identifier: 0.9.87 See steps to reproduce below. Reproducible: Always Steps to Reproduce: While single-stepping through code in the debugger, step through a condition like this: if (true) { var foo; foo = 1; } else { var bar; bar = 2; } and the debugger will step through both the true expression and the else expression. However, if the code looks like this: var foo; var bar; if (true){ foo = 1; } else { bar = 2; } then only the true condition will be executed (as expected). Of course this is tremendously confusing when stepping through code. Actual Results: both true and else condition are executed. Expected Results: only true condition should be executed.
Comment 1•17 years ago
|
||
I think you're seeing fallout from bug 156861 - the line you're actually executing is correct, but you're seeing the wrong line.
So you are saying that when the debugger shows me executing both lines of the else condition, it is actually executing some other 2 lines of code?
Comment 3•13 years ago
|
||
This is WFM for me on current (SeaMonkey) trunk.
Comment 4•13 years ago
|
||
(In reply to comment #3) > This is WFM for me on current (SeaMonkey) trunk. Without having tested this, maybe it depends on the JS engine (TraceMonkey/JIT)?
Comment 5•6 years ago
|
||
Component is obsolete so resolving bugs as INCOMPLETE
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
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
•