code: def publish_pdb_state(self):
          
          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)
              self.send_spyder_msg('pdb_state', content={'pdb_state': state})
          self._do_publish_pdb_state = True
docs: Publish Variable Explorer state and Pdb step through
          send_spyder_msg.