'Publish Variable Explorer state and Pdb step through
publish_data.'

def publish_pdb_state(self):

    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})
