Skip to content

Commit

Permalink
Change _do_publish_data to _do_publish_pdb_step.
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed Oct 26, 2017
1 parent 4237853 commit 7ba948f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spyder/utils/ipython/spyder_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, *args, **kwargs):
self.namespace_view_settings = {}
self._pdb_obj = None
self._pdb_step = None
self._do_publish_data = False
self._do_publish_pdb_state = True

kernel_config = self.config.get('IPKernelApp', None)
if kernel_config is not None:
Expand Down Expand Up @@ -158,7 +158,7 @@ def get_value(self, name):
# petitions to display a value
value = None
publish_data({'__spy_data__': value})
self._do_publish_data = True
self._do_publish_pdb_state = False

def set_value(self, name, value):
"""Set the value of a variable"""
Expand Down Expand Up @@ -214,12 +214,12 @@ def publish_pdb_state(self):
Publish Variable Explorer state and Pdb step through
publish_data.
"""
if self._pdb_obj and not self._do_publish_data:
if self._pdb_obj and self._do_publish_pdb_state:
state = dict(namespace_view = self.get_namespace_view(),
var_properties = self.get_var_properties(),
step = self._pdb_step)
publish_data({'__spy_pdb_state__': state})
self._do_publish_data = False
self._do_publish_pdb_state = True

def pdb_continue(self):
"""
Expand Down

0 comments on commit 7ba948f

Please sign in to comment.