oiFddlZddlZddlZddlmZddlmZmZddl m Z ddl m Z Gdde Z Gdd e ZGd d e ZGd d e ZGdde ZGddZGddeZGddeZGddZGddeZGddeZGddZGddZGd d!ZGd"d#ZGd$d%ZGd&d'ZGd(d)ZGd*d+ZGd,d-Z Gd.d/Z!Gd0d1Z"dS)2N)axdebug) RaiseNotImpl_wrap) COMException)ListEnumeratorGatewayc"eZdZdZejgZdS)EnumDebugCodeContextsaA class to expose a Python sequence as an EnumDebugCodeContexts Create an instance of this class passing a sequence (list, tuple, or any sequence protocol supporting object) and it will automatically support the EnumDebugCodeContexts interface for the object. N)__name__ __module__ __qualname____doc__rIID_IEnumDebugCodeContexts_com_interfaces_LC:\PYTHON\Scheduler\python\Lib\site-packages\win32comext/axdebug/gateways.pyr r s( :;rr c"eZdZdZejgZdS)EnumDebugStackFramesaA class to expose a Python sequence as an EnumDebugStackFrames Create an instance of this class passing a sequence (list, tuple, or any sequence protocol supporting object) and it will automatically support the EnumDebugStackFrames interface for the object. N)r r r r rIID_IEnumDebugStackFramesrrrrrrs( 9:rrc"eZdZdZejgZdS)EnumDebugApplicationNodesaA class to expose a Python sequence as an EnumDebugStackFrames Create an instance of this class passing a sequence (list, tuple, or any sequence protocol supporting object) and it will automatically support the EnumDebugApplicationNodes interface for the object. N)r r r r rIID_IEnumDebugApplicationNodesrrrrrr$s( >?rrceZdZejgZdS)EnumRemoteDebugApplicationsN)r r r r IID_IEnumRemoteDebugApplicationsrrrrrr0s@ArrceZdZejgZdS)!EnumRemoteDebugApplicationThreadsN)r r r r&IID_IEnumRemoteDebugApplicationThreadsrrrrrr4sFGrrc8eZdZddgZejgZdZdZdZ dS)DebugDocumentInfoGetNameGetDocumentClassIdcdSNrselfs r__init__zDebugDocumentInfo.__init__< rc$tddS)zTGet the one of the name of the document dnt -- int DOCUMENTNAMETYPE r!Nr)r&dnts rr!zDebugDocumentInfo.GetName?s Yrc$tddS)zL Result must be an IID object (or string representing one). r"Nr*r%s rr"z$DebugDocumentInfo.GetDocumentClassIdEs )*****rN) r r r _public_methods_rIID_IDebugDocumentInforr'r!r"rrrr r 8sY!#7867      +++++rr cJeZdZejdgzZejejgzZdZdS)DebugDocumentProvider GetDocumentc$tddS)Nr1r*r%s rr1z!DebugDocumentProvider.GetDocumentRs]#####rN) r r r r r-rrIID_IDebugDocumentProviderr1rrrr0r0LsL(9]OK(9*=$$$$$rr0ceZdZdZdejzZejgej zZ dZ dZ dZ dZ dZdZd Zd S) DebugApplicationNodez[Provides the functionality of IDebugDocumentProvider, plus a context within a project tree.zREnumChildren GetParent SetDocumentProvider Close Attach Detachc:t|dSr$)r0r'r%s rr'zDebugApplicationNode.__init__bs&&t,,,,,rc$tddS)N EnumChildrenr*r%s rr8z!DebugApplicationNode.EnumChildrene^$$$$$rc$tddS)N GetParentr*r%s rr;zDebugApplicationNode.GetParenti[!!!!!rc$tddS)NSetDocumentProviderr*)r&pddps rr>z(DebugApplicationNode.SetDocumentProviderms*+++++rc$tddS)NCloser*r%s rrAzDebugApplicationNode.CloseqsWrc$tddS)NAttachr*r&parents rrCzDebugApplicationNode.AttachuXrc$tddS)NDetachr*r%s rrHzDebugApplicationNode.DetachyrFrN)r r r r splitr0r-rr3rr'r8r;r>rArCrHrrrr5r5Vsee ++0577  0 1 *./---%%%""",,,rr5cheZdZdZdZejgZdZ dZ dZ dZ dZ dS) DebugApplicationNodeEventsz0Event interface for DebugApplicationNode object.z!onAddChild onRemoveChild onDetachcdSr$rr%s rr'z#DebugApplicationNodeEvents.__init__r(rc$tddS)N onAddChildr*r&childs rrNz%DebugApplicationNodeEvents.onAddChilds\"""""rc$tddS)N onRemoveChildr*rOs rrRz(DebugApplicationNodeEvents.onRemoveChild_%%%%%rc$tddS)NonDetachr*r%s rrUz#DebugApplicationNodeEvents.onDetachZ     rc$tddS)NonAttachr*rDs rrXz#DebugApplicationNodeEvents.onAttachrVrN)r r r r rIr-rIID_IDebugApplicationNodeEventsrr'rNrRrUrXrrrrKrK~s:::@@BB?@   ###&&&!!!!!!!!rrKc@eZdZdZejZejgejzZdS) DebugDocumentz*The base interface to all debug documents.N) r r r r r r-rIID_IDebugDocumentrrrrr[r[s444(9236G6XXrr[czeZdZdZejgejzZgdejzZdZ dZ dZ dZ dZ dZd Zd Zd S) DebugDocumentTextz,The interface to a text only debug document.)GetDocumentAttributesGetSizeGetPositionOfLineGetLineOfPositionGetTextGetPositionOfContextGetContextOfPositioncdSr$rr%s rr'zDebugDocumentText.__init__r(rc$tddS)Nr_r*r%s rr_z'DebugDocumentText.GetDocumentAttributess,-----rc$tddS)Nr`r*r%s rr`zDebugDocumentText.GetSizesYrc$tddS)Nrar*)r& cLineNumbers rraz#DebugDocumentText.GetPositionOfLine()))))rc$tddS)Nrbr*)r&charPoss rrbz#DebugDocumentText.GetLineOfPositionrkrc$tddS)zParams charPos -- integer maxChars -- integer wantAttr -- Should the function compute attributes. Return value must be (string, attribtues). attributes may be None if(not wantAttr) rcNr*)r&rmmaxCharswantAttrs rrczDebugDocumentText.GetTexts Yrc$tddS)zParams debugDocumentContext -- a PyIDebugDocumentContext object. Return value must be (charPos, numChars) rdNr*)r&debugDocumentContexts rrdz&DebugDocumentText.GetPositionOfContexts +,,,,,rcBt|tddS)zYParams are integers. Return value must be PyIDebugDocumentContext object reN)printr)r&rmros rrez&DebugDocumentText.GetContextOfPositions$ d +,,,,,rN)r r r r rIID_IDebugDocumentTextr[rr-r'r_r`rarbrcrdrerrrr^r^s6667-:XX &'   ...   ******    --------rr^cBeZdZdZgdZejgZdZdZ dZ dZ dS)DebugDocumentTextExternalAuthorzAllow external editors to edit file-based debugger documents, and to notify the document when the source file has been changed.) GetPathName GetFileName NotifyChangedcdSr$rr%s rr'z(DebugDocumentTextExternalAuthor.__init__r(rc$tddS)aReturn the full path (including file name) to the document's source file. Result must be (filename, fIsOriginal), where - if fIsOriginalPath is TRUE if the path refers to the original file for the document. - if fIsOriginalPath is FALSE if the path refers to a newly created temporary file. raise COMException(winerror.E_FAIL) if no source file can be created/determined. rxNr*r%s rrxz+DebugDocumentTextExternalAuthor.GetPathNames ]#####rc$tddS)z}Return just the name of the document, with no path information. (Used for "Save As...") Result is a string ryNr*r%s rryz+DebugDocumentTextExternalAuthor.GetFileName ]#####rc$tddS)zzNotify the host that the document's source file has been saved and that its contents should be refreshed. rzNr*r%s rrzz-DebugDocumentTextExternalAuthor.NotifyChangeds _%%%%%rN) r r r r r-r$IID_IDebugDocumentTextExternalAuthorrr'rxryrzrrrrwrwstJJFFFDE    $ $ $$$$&&&&&rrwcpeZdZdZejgZdZdZ dZ dZ dZ dZ dZd S) DebugDocumentTextEventszonDestroy onInsertText onRemoveText onReplaceText onUpdateTextAttributes onUpdateDocumentAttributescdSr$rr%s rr'z DebugDocumentTextEvents.__init__r(rc$tddS)N onDestroyr*r%s rrz!DebugDocumentTextEvents.onDestroyr<rc$tddS)N onInsertTextr*)r&cCharacterPosition cNumToInserts rrz$DebugDocumentTextEvents.onInsertText r9rc$tddS)N onRemoveTextr*)r&r cNumToRemoves rrz$DebugDocumentTextEvents.onRemoveTextr9rc$tddS)N onReplaceTextr*)r&r cNumToReplaces rrz%DebugDocumentTextEvents.onReplaceTextrSrc$tddS)NonUpdateTextAttributesr*)r&r cNumToUpdates rrz.DebugDocumentTextEvents.onUpdateTextAttributess-.....rc$tddS)NonUpdateDocumentAttributesr*)r& textdocattrs rrz2DebugDocumentTextEvents.onUpdateDocumentAttributess122222rN)r r r rIr-rIID_IDebugDocumentTextEventsrr'rrrrrrrrrrrs,,1EGG <=   """%%%%%%&&&///33333rrc8eZdZddgZejgZdZdZdZ dS)DebugDocumentContextr1EnumCodeContextscdSr$rr%s rr'zDebugDocumentContext.__init__$r(rc$tddS)z.Return value must be a PyIDebugDocument objectr1Nr*r%s rr1z DebugDocumentContext.GetDocument']#####rc$tddS)z6Return value must be a PyIEnumDebugCodeContexts objectrNr*r%s rrz%DebugDocumentContext.EnumCodeContexts+s'(((((rN) r r r r-rIID_IDebugDocumentContextrr'r1rrrrrr sY%'9:9:   $$$)))))rrc8eZdZddgZejgZdZdZdZ dS)DebugCodeContextGetDocumentContext SetBreakPointcdSr$rr%s rr'zDebugCodeContext.__init__4r(rc$tddS)z5Return value must be a PyIDebugDocumentContext objectrNr*r%s rrz#DebugCodeContext.GetDocumentContext7s)*****rc$tddS)zbps -- an integer with flags.rNr*)r&bpss rrzDebugCodeContext.SetBreakPoint;rSrN) r r r r-rIID_IDebugCodeContextrr'rrrrrrr0sX,o>56   +++&&&&&rrcNeZdZdZgdZejgZdZdZ dZ dZ dZ dZ d S) DebugStackFramezHAbstraction representing a logical stack frame on the stack of a thread.)GetCodeContextGetDescriptionStringGetLanguageString GetThreadGetDebugPropertycdSr$rr%s rr'zDebugStackFrame.__init__Lr(rc$tddS)zReturns the current code context associated with the stack frame. Return value must be a IDebugCodeContext object rNr*r%s rrzDebugStackFrame.GetCodeContextOs %&&&&&rc$tddS)z}Returns a textual description of the stack frame. fLong -- A flag indicating if the long name is requested. rNr*)r&fLongs rrz$DebugStackFrame.GetDescriptionStringVs +,,,,,rc$tddS)zReturns a short or long textual description of the language. fLong -- A flag indicating if the long name is requested. rNr*r%s rrz!DebugStackFrame.GetLanguageString]s ()))))rc$tddS)zoReturns the thread associated with this stack frame. Result must be a IDebugApplicationThread rNr*r%s rrzDebugStackFrame.GetThreadds [!!!!!rc$tddS)Nrr*r%s rrz DebugStackFrame.GetDebugPropertyks'(((((rN)r r r r r-rIID_IDebugStackFramerr'rrrrrrrrrr@sRR 45   '''---***""")))))rrcTeZdZdZgdZejgZdZdZ dZ dZ dZ dZ d Zd S) DebugDocumentHostzThe interface from the IDebugDocumentHelper back to the smart host or language engine. This interface exposes host specific functionality such as syntax coloring. )GetDeferredTextGetScriptTextAttributesOnCreateDocumentContextrxryrzcdSr$rr%s rr'zDebugDocumentHost.__init__r(rc$tddS)Nrr*)r&dwTextStartCookiero bWantAttrs rrz!DebugDocumentHost.GetDeferredText&'''''rc$tddS)Nrr*)r&codeText delimterTextflagss rrz)DebugDocumentHost.GetScriptTextAttributes./////rc$tddS)Nrr*r%s rrz)DebugDocumentHost.OnCreateDocumentContextrrc$tddS)Nrxr*r%s rrxzDebugDocumentHost.GetPathNamer~rc$tddS)Nryr*r%s rryzDebugDocumentHost.GetFileNamerrc$tddS)Nrzr*r%s rrzzDebugDocumentHost.NotifyChanged_%%%%%rN)r r r r r-rIID_IDebugDocumentHostrr'rrrrxryrzrrrrros  67   (((000000$$$$$$&&&&&rrceZdZejjjejjjzZe j e j gZ dZ dZdZdZdZdZdZdZd S) DebugDocumentTextConnectServerc"d|_i|_dS)N)cookieNo connectionsr%s rr'z'DebugDocumentTextConnectServer.__init__s rc$tddS)NEnumConnectionsr*r%s rrz.DebugDocumentTextConnectServer.EnumConnectionsrrc$tddS)NGetConnectionInterfacer*r%s rrz5DebugDocumentTextConnectServer.GetConnectionInterface-.....rc t|Sr$)rr%s rGetConnectionPointContainerz:DebugDocumentTextConnectServer.GetConnectionPointContainersT{{rc|tjd}|xjdz c_||j|j<|jS)N)QueryInterfacerrrr)r&pUnk interfaces rAdvisez%DebugDocumentTextConnectServer.AdvisesC''(LaPP   *3'}rcl |j|=dS#t$rttjcYSwxYwN)scode)rKeyErrorrwinerror E_UNEXPECTED)r&cookies rUnadvisez'DebugDocumentTextConnectServer.UnadvisesM = ((( = = =h&;<<< < < < =s  $33c$tddS)NEnumConnectionPointsr*r%s rrz3DebugDocumentTextConnectServer.EnumConnectionPoints+,,,,,rct|tjkrt|Sttjr)rrrrr E_NOINTERFACE)r&iids rFindConnectionPointz2DebugDocumentTextConnectServer.FindConnectionPoints0 '6 6 6;; !78888rN)r r r win32comserverconnect!IConnectionPointContainer_methodsIConnectionPoint_methodsr- pythoncomIID_IConnectionPointIID_IConnectionPointContainerrr'rrrrrrrrrrrrsA / ! : ; &/ (((///===---99999rrcbeZdZgdZejgZdZdZdZ dZ dZ dZ dZ d Zd Zd Zd S) RemoteDebugApplicationEvents) OnConnectDebuggerOnDisconnectDebugger OnSetName OnDebugOutputOnCloseOnEnterBreakPointOnLeaveBreakPointOnCreateThreadOnDestroyThreadOnBreakFlagChangec$tddS)z'appDebugger -- a PyIApplicationDebuggerrNr*)r& appDebuggers rrz.RemoteDebugApplicationEvents.OnConnectDebuggerrkrc$tddS)Nrr*r%s rrz1RemoteDebugApplicationEvents.OnDisconnectDebuggerrrc$tddS)Nrr*)r&names rrz&RemoteDebugApplicationEvents.OnSetNames[!!!!!rc$tddS)Nrr*)r&strings rrz*RemoteDebugApplicationEvents.OnDebugOutputrrc$tddS)Nrr*r%s rrz$RemoteDebugApplicationEvents.OnClosesYrc$tddS)'rdat -- PyIRemoteDebugApplicationThreadrNr*r&rdats rrz.RemoteDebugApplicationEvents.OnEnterBreakPointrkrc$tddS)r rNr*r s rrz.RemoteDebugApplicationEvents.OnLeaveBreakPointrkrc$tddS)r rNr*r s rrz+RemoteDebugApplicationEvents.OnCreateThreads%&&&&&rc$tddS)r rNr*r s rrz,RemoteDebugApplicationEvents.OnDestroyThreads&'''''rcdS)zabf -- int - one of the axdebug.APPBREAKFLAGS constants rdat -- PyIRemoteDebugApplicationThread RaiseNotImpl("OnBreakFlagChange") Nr)r&abfr s rrz.RemoteDebugApplicationEvents.OnBreakFlagChangesrN)r r r r-r!IID_IRemoteDebugApplicationEventsrrrrrrrrrrrrrrrrs    AB***---"""&&&   ******'''(((     rrc8eZdZddgZejgZdZdZdZ dS)DebugExpressionContextParseLanguageTextGetLanguageInfocdSr$rr%s rr'zDebugExpressionContext.__init__ r(rc$tddS)z, result is IDebugExpression rNr*)r&coderadixdelimrs rrz(DebugExpressionContext.ParseLanguageTexts ()))))rc$tddS)z9 result is (string langName, iid langId) rNr*r%s rrz&DebugExpressionContext.GetLanguageInfos &'''''rN) r r r r-rIID_IDebugExpressionContextrr'rrrrrrrsY+->?;<   *** (((((rrcDeZdZgdZejgZdZdZdZ dZ dZ dS)DebugExpression)StartAbortQueryIsCompleteGetResultAsStringGetResultAsDebugPropertyc$tddS)zP callback -- an IDebugExpressionCallback result - void r!Nr*)r&callbacks rr!zDebugExpression.Start%s Wrc$tddS)2 no params result -- void r"Nr*r%s rr"zDebugExpression.Abort-s Wrc$tddS)r)r#Nr*r%s rr#zDebugExpression.QueryIsComplete4s &'''''rc$tddS)Nr$r*r%s rr$z!DebugExpression.GetResultAsString;s()))))rc$tddS)Nr%r*r%s rr%z(DebugExpression.GetResultAsDebugProperty>s/00000rN) r r r r-rIID_IDebugExpressionrr!r"r#r$r%rrrr r s 45(((***11111rr c*eZdZdgZejgZdZdS)ProvideExpressionContextsEnumExpressionContextsc$tddS)Nr0r*r%s rr0z0ProvideExpressionContexts.EnumExpressionContextsFrrN)r r r r-rIID_IProvideExpressionContextsrr0rrrr/r/Bs801>?/////rr/)#rwin32com.server.connectrrwin32com.axdebugrwin32com.axdebug.utilrrwin32com.server.exceptionrwin32com.server.utilrr rrrrr r0r5rKr[r^rwrrrrrrrrr r/rrrr8s3$$$$$$55555555222222666666 < < < < <1 < < < ; ; ; ; ;0 ; ; ; @ @ @ @ @ 5 @ @ @BBBBB"7BBBHHHHH(=HHH++++++++($$$$$-$$$%%%%%0%%%P!!!!!!!!4YYYYY%YYY:-:-:-:-:- :-:-:-z&&&&&&&&D33333333D ) ) ) ) ) ) ) ) & & & & & & & & ,),),),),),),),)^*&*&*&*&*&*&*&*&`/9/9/9/9/9/9/9/9d3 3 3 3 3 3 3 3 l((((((((($1$1$1$1$1$1$1$1N//////////r