1
This commit is contained in:
parent
772bc1b6bb
commit
4fbba4ca93
@ -25,7 +25,7 @@ initTab(tab)
|
|||||||
tab.call_method("Page.navigate", url="http://localhost:7456/", _timeout=5)
|
tab.call_method("Page.navigate", url="http://localhost:7456/", _timeout=5)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
cmdline= input('')
|
cmdline= input('').strip()
|
||||||
try:
|
try:
|
||||||
msg = eval(cmdline)
|
msg = eval(cmdline)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
@ -2,8 +2,9 @@
|
|||||||
class ScriptMgr:
|
class ScriptMgr:
|
||||||
|
|
||||||
def __init__(self, tab):
|
def __init__(self, tab):
|
||||||
|
self.scripts = []
|
||||||
self.tab = tab
|
self.tab = tab
|
||||||
self.tab.set_listener('Debugger.scriptParsed', self.debuggerOnScriptParsed)
|
self.tab.set_listener('Debugger.scriptParsed', self.debuggerOnScriptParsed)
|
||||||
|
|
||||||
def debuggerOnScriptParsed(self, **kwargs):
|
def debuggerOnScriptParsed(self, **kwargs):
|
||||||
print(kwargs)
|
self.scripts.append(kwargs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user