Browse Source

don't fail if we can't debug.. mean you can run multiple instances

on a single computer..

[git-p4: depot-paths = "//depot/": change = 1379]
main
John-Mark Gurney 15 years ago
parent
commit
27316ce5f1
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      debug.py

+ 5
- 1
debug.py View File

@@ -5,6 +5,7 @@ __version__ = '$Change$'
# $Id$

from twisted.internet import reactor
import twisted.internet.error

# Make sure to update the global line when adding a new function
__all__ = [ 'appendnamespace', 'insertnamespace', 'insertringbuf' ]
@@ -67,4 +68,7 @@ def doDebugging(opt):
sf = telnet.ShellFactory()
sf.protocol = Debug
reactor.listenTCP(56283, sf)
try:
reactor.listenTCP(56283, sf)
except twisted.internet.error.CannotListenError:
print 'WARNING: cannot bind to debugger port.'

Loading…
Cancel
Save