diff options
Diffstat (limited to 'tools/autodebugger_js.py')
-rw-r--r-- | tools/autodebugger_js.py | 4 |
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 |