def manage_callBreakpoint(self, REQUEST=None): ''' sets a breakpoint and places the Zope server in debug mode proper! ''' if not self._v_active: if REQUEST: REQUEST.set('manage_tabs_message', 'BoaDebugger is inactive!') return self.manage_main(self, REQUEST) if hasattr(sys, 'breakpoint'): try: sys.breakpoint() # This is a hardcoded breakpoint. if REQUEST: REQUEST.set('manage_tabs_message', 'Breakpoint Added') return self.manage_main(self, REQUEST) return except Exception, e: if REQUEST: REQUEST.set('manage_tabs_message', str(e)) return self.manage_main(self, REQUEST) raise
## Script (Python) "breakpoint" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## try: import sys except ImportError: raise Exception('Please install the Breakpoint product in the ZopeLib directory') try: sys.breakpoint() except AttributeError: raise Exception('Zope must be running in the Debugger')
## Script (Python) "breakpoint" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## try: import sys except ImportError: raise Exception( 'Please install the Breakpoint product in the ZopeLib directory') try: sys.breakpoint() except AttributeError: raise Exception('Zope must be running in the Debugger')