Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dbgcon.py 845B

1234567891011121314151617181920212223242526272829303132
  1. # General constants for the debugger
  2. DBGSTATE_NOT_DEBUGGING = 0
  3. DBGSTATE_RUNNING = 1
  4. DBGSTATE_BREAK = 2
  5. DBGSTATE_QUITTING = 3 # Attempting to back out of the debug session.
  6. LINESTATE_CURRENT = 0x1 # This line is where we are stopped
  7. LINESTATE_BREAKPOINT = 0x2 # This line is a breakpoint
  8. LINESTATE_CALLSTACK = 0x4 # This line is in the callstack.
  9. OPT_HIDE = "hide"
  10. OPT_STOP_EXCEPTIONS = "stopatexceptions"
  11. import win32api
  12. import win32ui
  13. def DoGetOption(optsDict, optName, default):
  14. optsDict[optName] = win32ui.GetProfileVal("Debugger Options", optName, default)
  15. def LoadDebuggerOptions():
  16. opts = {}
  17. DoGetOption(opts, OPT_HIDE, 0)
  18. DoGetOption(opts, OPT_STOP_EXCEPTIONS, 1)
  19. return opts
  20. def SaveDebuggerOptions(opts):
  21. for key, val in opts.items():
  22. win32ui.WriteProfileVal("Debugger Options", key, val)