aboutsummaryrefslogtreecommitdiff
path: root/tools/autodebugger_js.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-25 14:02:49 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-25 14:02:49 -0800
commit750ad0c62407a52e17e4efe8797305ea9eb548cb (patch)
treecb412583720e681cbfee56cc59cd9f31689331ce /tools/autodebugger_js.py
parentf0df601ff867efe53e2cc1e63eaec0635a5065ac (diff)
add function calls and params to js autodebugger
Diffstat (limited to 'tools/autodebugger_js.py')
-rw-r--r--tools/autodebugger_js.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/autodebugger_js.py b/tools/autodebugger_js.py
index 309e2f85..3f8818c6 100644
--- a/tools/autodebugger_js.py
+++ b/tools/autodebugger_js.py
@@ -16,6 +16,10 @@ f.close()
lines = data.split('\n')
in_func = False
for i in range(len(lines)):
+ if lines[i].startswith('function '):
+ name = lines[i].split('(')[0].split(' ')[1]
+ args = lines[i].split('(')[1].split(')')[0]
+ lines[i] += ' print("call %s(" + [%s] + ")");' % (name, args)
if lines[i].startswith('function ' + func + '('):
in_func = True
continue