This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 150917 - debbuger skipped through individual statements in function
Summary: debbuger skipped through individual statements in function
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: jymen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-21 17:51 UTC by Peter Lam
Modified: 2009-02-19 22:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-10-21 17:51:08 UTC
build 81 (20081021)

- from the following python code, set a break point the last line "main()"
- debug the file
- step into main()
- after entering the number list as an input, eg, [2, 3, 5], and press Enter, the debug session skipped over the rest of
the statements in the main() function and ended the debug session. Output below.

>>>[stdout:]Type in a list of numbers with brackets like [1, 2, 3]:>>>[2, 3]
[stdout:]Square list:[stdout:] [stdout:][4, 9]
[stdout:]Original list: [stdout:] [stdout:][2, 3]
'+++ JPy/sessionended/
deamon ended

Debug session normal end



def squareList(numlist):
    """
        Returns the squares of an input list
    """
    squarelist = []
    for num in range(len(numlist)):
        squarelist.append(numlist[num] ** 2)
    return squarelist

def main():
    numlist = input("Type in a list of numbers with brackets like [1, 2, 3]:")
    print "Square list:", squareList(numlist)
    print "Original list: ", numlist

main()
Comment 1 jymen 2008-10-28 08:31:46 UTC
the fix will be part of the multithreaded support extension which is in progress and planed for after the 65ea since the
multithreading support is a big change in the debugger backend code , I do not want to take the risk of having
regressions in the python65ea.
Comment 2 jymen 2009-01-08 09:53:45 UTC
Fixed in 7.0 trunk build #545 and above