Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit 88e3776

Browse files
committed
Merge pull request #81 from robertbasic/fix/issue80
Clear the variable tables when a new debugging session starts. Fixes #80
2 parents 24f5431 + 832ecb9 commit 88e3776

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pugdebug/gui/variables.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ def handle_variable_double_clicked(self, item):
3939
if item.text(1).find('string') > -1:
4040
PugdebugVariableDetails(self, item)
4141

42+
def clear(self):
43+
"""Clear the variable tables
44+
"""
45+
for context_key in self.variable_tables:
46+
self.variable_tables[context_key].clear()
47+
4248
def set_variables(self, variables):
4349
for context in variables:
4450
table = self.get_variable_table(context)

0 commit comments

Comments
 (0)