Permalink
Browse files

add function calls and params to js autodebugger

  • Loading branch information...
1 parent f0df601 commit 750ad0c62407a52e17e4efe8797305ea9eb548cb @kripken committed Dec 25, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 tools/autodebugger_js.py
View
@@ -16,6 +16,10 @@
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

0 comments on commit 750ad0c

Please sign in to comment.