def get_local_as_int(self, name, threadId=None):
    value = self.vscode.get_local_variable_value(name, threadId=threadId)
    if value.startswith('0x'):
        return int(value, 16)
    elif value.startswith('0'):
        return int(value, 8)
    else:
        return int(value)
def get_local_as_int(self, name, threadId=None):
    value = self.vscode.get_local_variable_value(name, threadId=threadId)
    if value.startswith('0x'):
        return int(value, 16)
    elif value.startswith('0'):
        return int(value, 8)
    else:
        return int(value)