Skip to content

Commit

Permalink
Merge from 2.x: PR #303
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Jul 8, 2021
2 parents 8b6e0af + 8066f20 commit 961e43e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions spyder_kernels/console/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ def __init__(self, *args, **kwargs):
self.namespace_view_settings = {}
self._pdb_obj = None
self._pdb_step = None
self._do_publish_pdb_state = True
self._mpl_backend_error = None
self._running_namespace = None
self._pdb_input_line = None
Expand Down Expand Up @@ -201,7 +200,6 @@ def get_var_properties(self):
def get_value(self, name):
"""Get the value of a variable"""
ns = self._get_current_namespace()
self._do_publish_pdb_state = False
return ns[name]

def set_value(self, name, value):
Expand Down Expand Up @@ -286,16 +284,12 @@ def do_complete(self, code, cursor_pos):
return self._do_complete(code, cursor_pos)

def publish_pdb_state(self):
"""
Publish Variable Explorer state and Pdb step through
send_spyder_msg.
"""
if self._pdb_obj and self._do_publish_pdb_state:
"""Publish Pdb state."""
if self._pdb_obj:
state = dict(namespace_view = self.get_namespace_view(),
var_properties = self.get_var_properties(),
step = self._pdb_step)
self.frontend_call(blocking=False).pdb_state(state)
self._do_publish_pdb_state = True

def set_spyder_breakpoints(self, breakpoints):
"""
Expand Down

0 comments on commit 961e43e

Please sign in to comment.