MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / wait

Method wait

pydevd_attach_to_process/winappdbg/debug.py:813–839  ·  view source on GitHub ↗

Waits for the next debug event. @see: L{cont}, L{dispatch}, L{loop} @type dwMilliseconds: int @param dwMilliseconds: (Optional) Timeout in milliseconds. Use C{INFINITE} or C{None} for no timeout. @rtype: L{Event} @return: An event tha

(self, dwMilliseconds=None)

Source from the content-addressed store, hash-verified

811 # ------------------------------------------------------------------------------
812
813 def wait(self, dwMilliseconds=None):
814 """
815 Waits for the next debug event.
816
817 @see: L{cont}, L{dispatch}, L{loop}
818
819 @type dwMilliseconds: int
820 @param dwMilliseconds: (Optional) Timeout in milliseconds.
821 Use C{INFINITE} or C{None} for no timeout.
822
823 @rtype: L{Event}
824 @return: An event that occured in one of the debugees.
825
826 @raise WindowsError: Raises an exception on error.
827 If no target processes are left to debug,
828 the error code is L{win32.ERROR_INVALID_HANDLE}.
829 """
830
831 # Wait for the next debug event.
832 raw = win32.WaitForDebugEvent(dwMilliseconds)
833 event = EventFactory.get(self, raw)
834
835 # Remember it.
836 self.lastEvent = event
837
838 # Return it.
839 return event
840
841 def dispatch(self, event=None):
842 """

Callers 15

nextMethod · 0.95
_on_runMethod · 0.45
_on_runMethod · 0.45
wait_for_ready_to_runMethod · 0.45
_do_wait_suspendMethod · 0.45
runMethod · 0.45
_on_runMethod · 0.45
runMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 2

runMethod · 0.36