"if" inside Looping Constructs
Wilson Jimmy - jiwils <[email protected]> Tue, 16 Sep 2003 17:03:14 -0500
| Newsgroups | gmane.comp.java.jswat.user |
|---|---|
| Message-ID | <3E54A6BA1EAFD311AD75009027DEA5C0185D82FC@conmsx04.corp.acxiom.net> |
I have encountered an interesting issue/problem with JSwat when debugging
code that contains "if"/"else if" constructs inside looping constructs.
Some example code:
while (some condition)
{
...
if (condition 1)
{
...
}
else if (condition 2)
{
...
}
else if (condition 3)
{
<condition 3 line 1>;
<condition 3 line 2>;
}
}
In the debugger, if I step inside the "else if" block for condition 2, once
I have executed all of the code in that block, the flow of execution moves
immediately to the last line of the "else if" block for condition 3 (it is
highlighted as if it is next). However, in reality, this code is not
executing, and if I tell the debugger to step, it steps back to the while
condition at the top of the code sample. It appears that JSwat does not
know that it is actually executing the code that is terminating the "else
if" block for condition 2 and the terminating that loop of the while loop.
In discussions with my colleagues, this was mentioned as being seen in other
debuggers too.
Is this a problem with the Java Debugging API or is it a more specific
problem with JSwat?
Jimmy
--
James "Jimmy" Wilson
Software Developer, Acxiom Corporation
**********************************************************************
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.