Ejemplo n.º 1
0
    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})
Ejemplo n.º 2
0
 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})
Ejemplo n.º 3
0
 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})
Ejemplo n.º 4
0
 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})
Ejemplo n.º 5
0
 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})
Ejemplo n.º 6
0
 def get_value(self, name):
     """Get the value of a variable"""
     ns = self._get_current_namespace()
     value = ns[name]
     publish_data({'__spy_data__': value})
Ejemplo n.º 7
0
 def get_value(self, name):
     """Get the value of a variable"""
     ns = self._get_current_namespace()
     value = ns[name]
     publish_data({'__spy_data__': value})