Everything

debugger.Interrupt.ExceptionCause


This property refers to the exception cause code.

[Specification format]

debugger.Interrupt.ExceptionCause

[Setting(s)]

None

[Reference]

Exception cause code

[Detailed description]

-

This property refers to the exception cause code.

-

The exception cause code can be referenced only when the hook function is AfterInterrupt or while the parameter of the callback function (pythonConsoleCallback) is 50.
See the Hook function for the hook function and callback function.

[Example of use]

(1)

Create the script file (C:\test\sample.py).

def AfterInterrupt():
    if debugger.Interrupt.ExceptionCause == 0x30:
        print "OK"
    else:
        print "NG"
 
def pythonConsoleCallback(Id):
    if Id == 50:
        if debugger.Interrupt.ExceptionCause == 0x30:
            print "OK"
        else:
            print "NG"

(2)

Use a Hook function to register the created script file from the Python console.

>>> Hook("C:/test/test.py")
>>>