class ScriptMgr: def __init__(self, tab): self.tab = tab self.tab.set_listener('Debugger.scriptParsed', self.debuggerOnScriptParsed) def debuggerOnScriptParsed(self, **kwargs): print(kwargs)