Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add heap writes to js debugger

  • Loading branch information...
commit f0df601ff867efe53e2cc1e63eaec0635a5065ac 1 parent 0371054
Alon Zakai authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 tools/autodebugger_js.py
4 tools/autodebugger_js.py
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.