Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 150589 - [65cat] Python debugger doesn't stop python.exe process
[65cat] Python debugger doesn't stop python.exe process
Product: python
Classification: Unclassified
Component: Debugger
PC Windows Vista
: P3 (vote)
: 6.x
Assigned To: jymen
Depends on:
  Show dependency treegraph
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


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
        print string," Now Sleeping after Lock acquired for ",sleeptime
        print string," Now releasing lock and then sleeping again"
	#exiting critical section
        time.sleep(sleeptime) # why?

if __name__=="__main__":

    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.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo