def pdb_continue(self): """ Tell the console to run 'continue' after entering a Pdb session to get to the first breakpoint. Fixes issue 2034 """ if self._pdb_obj: publish_data({'__spy_pdb_continue__': True})
def publish_pdb_state(self): """ Publish Variable Explorer state and Pdb step through publish_data. """ if self._pdb_obj: state = dict(namespace_view = self.get_namespace_view(), var_properties = self.get_var_properties(), step = self._pdb_step) publish_data({'__spy_pdb_state__': state})
def get_value(self, name): """Get the value of a variable""" ns = self._get_current_namespace() value = ns[name] try: publish_data({'__spy_data__': value}) except: # * There is no need to inform users about # these errors. # * value = None makes Spyder to ignore # petitions to display a value value = None publish_data({'__spy_data__': value})
def get_value(self, name): """Get the value of a variable""" ns = self._get_current_namespace() value = ns[name] publish_data({'__spy_data__': value})