Advertisement
dioseph

pseudo code debug loop

Oct 18th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.45 KB | None | 0 0
  1. closed = Normally
  2. debug = DEBUG_EVENT()           [5]
  3. dwContinueStatus = CONTINUE
  4. while (debug) do    
  5.     event = waitFotEvent(debug, TIMEOUT)    
  6.     if event is Exception then
  7.         if event.ExceptionCODE is PosibleCrash then
  8.              closed = Crashed
  9.         else
  10.              dwContinueStatus = DBG_EXCEPTION_NOT_HANDLED    
  11.         end
  12.     else:
  13.         handleEvent(debug,event)
  14.     end
  15.     ContinueDebugEvent(dwContinueStatus)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement