Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDan Williams <dcbw@localhost.localdomain>2006-08-17 03:06:13 (GMT)
committer Dan Williams <dcbw@localhost.localdomain>2006-08-17 03:06:13 (GMT)
commit3b8dbb083693375f9397dd83fda7bced97e800e4 (patch)
tree60aeaf4ed7fe3589271fd849e054bda469ffa5af /shell
parent6d7782654c15ea13f4bc9adf92efd9506d4ebc20 (diff)
Enable traceback debugging in the PS
Diffstat (limited to 'shell')
-rw-r--r--shell/PresenceService/PresenceService.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/PresenceService/PresenceService.py b/shell/PresenceService/PresenceService.py
index 72e9460..4fe0b2f 100644
--- a/shell/PresenceService/PresenceService.py
+++ b/shell/PresenceService/PresenceService.py
@@ -696,13 +696,19 @@ class PresenceService(object):
if stype in self._registered_service_types:
self._registered_service_types.remove(stype)
+
def main():
+ from sugar import TracebackUtils
loop = gobject.MainLoop()
ps = PresenceService()
+ tbh = TracebackUtils.TracebackHelper()
try:
loop.run()
except KeyboardInterrupt:
print 'Ctrl+C pressed, exiting...'
+ del tbh
+
+
if __name__ == "__main__":
main()