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 150589 - [65cat] Python debugger doesn't stop python.exe process
Summary: [65cat] Python debugger doesn't stop python.exe process
Status: CLOSED WONTFIX
Alias: None
Product: python
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker (vote)
Assignee: jymen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 22:28 UTC by sunbiz
Modified: 2017-06-23 08:06 UTC (History)
2 users (show)

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 sunbiz 2008-10-17 22:28:16 UTC
Product Version: NetBeans IDE 6.5 RC1 (Build 20081016235259)
Java: 1.6.0_10-rc2; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1252; en_IN (nb)

If a python program with the following code is run, then python debugger does not stop the "python.exe" process, after 
the debugger has been stopped.

#!/usr/bin/env python

import time
import thread

def myfunction(string,sleeptime,lock,*args):
    while 1:
	#entering critical section
        lock.acquire()
        print string," Now Sleeping after Lock acquired for ",sleeptime
        time.sleep(sleeptime)
        print string," Now releasing lock and then sleeping again"
        lock.release()
	#exiting critical section
        time.sleep(sleeptime) # why?

if __name__=="__main__":

    lock=thread.allocate_lock()
    thread.start_new_thread(myfunction,("Thread No:1",2,lock))
    thread.start_new_thread(myfunction,("Thread No:2",2,lock))

    while 1:pass
Comment 1 Jenselme 2017-06-22 22:07:28 UTC
Should be solved with the new debugger when we add it. The debugger is currently disabled. Closing this since there is no point into importing it elsewhere.
Comment 2 Jiri Kovalsky 2017-06-23 08:06:10 UTC
Thanks for your evaluation Julien. Reporter, if you think your issue is still valid and needs to be addressed, don't hesitate to reopen it with additional information. Closing for now.