Permalink
Browse files

add heap writes to js debugger

  • Loading branch information...
1 parent 0371054 commit f0df601ff867efe53e2cc1e63eaec0635a5065ac @kripken committed Dec 25, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 tools/autodebugger_js.py
View
4 tools/autodebugger_js.py
@@ -32,6 +32,10 @@
if 'STACKTOP' not in lines[i] and 'stackBase' not in lines[i]:
#lines[i] += ''' print("[%4d] %s = " + %s);''' % (i+1, var, var)
lines[i] += ''' print("%s = " + %s);''' % (var, var)
+ m = re.match('^ +HEAP.*$', lines[i])
+ if m and lines[i].count(' = ') == 1:
+ left, right = lines[i].split(' = ')
+ lines[i] += ''' print("%s = " + %s);''' % (left, left)
print '\n'.join(lines)

0 comments on commit f0df601

Please sign in to comment.