| Server IP : 123.56.80.60 / Your IP : 216.73.216.78 Web Server : Apache/2.4.54 (Win32) OpenSSL/1.1.1s PHP/7.4.33 mod_fcgid/2.3.10-dev System : Windows NT iZhx3sob14hnz7Z 10.0 build 14393 (Windows Server 2016) i586 User : SYSTEM ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files (x86)/Alibaba/Aegis/PythonLoader/third_party/pythonwin/pywin/debugger/ |
Upload File : |
import dbgcon from pywin.mfc import dialog import win32ui class DebuggerOptionsPropPage(dialog.PropertyPage): def __init__(self): dialog.PropertyPage.__init__(self, win32ui.IDD_PP_DEBUGGER) def OnInitDialog(self): options = self.options = dbgcon.LoadDebuggerOptions() self.AddDDX(win32ui.IDC_CHECK1, dbgcon.OPT_HIDE) self[dbgcon.OPT_STOP_EXCEPTIONS] = options[dbgcon.OPT_STOP_EXCEPTIONS] self.AddDDX(win32ui.IDC_CHECK2, dbgcon.OPT_STOP_EXCEPTIONS) self[dbgcon.OPT_HIDE] = options[dbgcon.OPT_HIDE] return dialog.PropertyPage.OnInitDialog(self) def OnOK(self): self.UpdateData() dirty = 0 for key, val in list(self.items()): if key in self.options: if self.options[key] != val: self.options[key] = val dirty = 1 if dirty: dbgcon.SaveDebuggerOptions(self.options) # If there is a debugger open, then set its options. import pywin.debugger if pywin.debugger.currentDebugger is not None: pywin.debugger.currentDebugger.options = self.options return 1