Commit 6a7bd191 authored by Luke Macken's avatar Luke Macken

Display a message if we cannot inspect a live object

parent a20c18e2
......@@ -294,7 +294,11 @@ class PyrasiteWindow(Gtk.Window):
addy = model.get_value(treeiter, 0)
inspector = pyrasite.ObjectInspector(self.pid)
value = inspector.inspect(addy)
self.obj_buffer.set_text(value)
if value:
self.obj_buffer.set_text(value)
else:
self.obj_buffer.set_text('Unable to inspect object. Make sure you '
'have the python debugging symbols installed.')
def obj_row_activated_cb(self, *args, **kw):
log.debug("obj_row_activated_cb(%s, %s)" % (args, kw))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment