Skip to content

Commit 7922e48

Browse files
committed
VITAL
1 parent de4c91c commit 7922e48

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

PyTutorGAE/js/pytutor.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ ExecutionVisualizer.prototype.renderDataStructures = function() {
15631563

15641564
var stackDiv = myViz.domRootD3.select('#stack');
15651565

1566-
var stackFrameDiv = stackDiv.selectAll('div')
1566+
var stackFrameDiv = stackDiv.selectAll('div.stackFrame,div.zombieStackFrame')
15671567
.data(curEntry.stack_to_render, function(frame) {
15681568
// VERY VERY VERY IMPORTANT for properly handling closures and nested functions
15691569
// (see the backend code for more details)
@@ -1576,8 +1576,9 @@ ExecutionVisualizer.prototype.renderDataStructures = function() {
15761576
.attr('id', function(d, i) {return d.is_zombie ? myViz.generateID("zombie_stack" + i)
15771577
: myViz.generateID("stack" + i);
15781578
})
1579+
.each(function(frame, i) {console.log('NEW STACK FRAME', frame.unique_hash);})
15791580
.append('table')
1580-
.attr('class', 'stackFrameVarTable')
1581+
.attr('class', 'stackFrameVarTable');
15811582

15821583

15831584
var stackVarTable = stackFrameDiv
@@ -1670,7 +1671,9 @@ ExecutionVisualizer.prototype.renderDataStructures = function() {
16701671

16711672
stackVarTable.exit().remove();
16721673

1673-
stackFrameDiv.exit().remove();
1674+
stackFrameDiv.exit()
1675+
.each(function(frame, i) {console.log('DEL STACK FRAME', frame.unique_hash, i);})
1676+
.remove();
16741677

16751678

16761679
// render stack frame headers in a "brute force" way by

0 commit comments

Comments
 (0)