Commit f00a7db4 authored by Luke Macken's avatar Luke Macken

Gracefully handle inspection failures due to missing debuginfo in the memory-viewer

parent d5d36028
...@@ -70,6 +70,9 @@ class PyrasiteMemoryViewer(object): ...@@ -70,6 +70,9 @@ class PyrasiteMemoryViewer(object):
def display_object(self, w, state): def display_object(self, w, state):
if state: if state:
value = pyrasite.inspect(self.pid, w.obj.max_address) value = pyrasite.inspect(self.pid, w.obj.max_address)
if not value:
value = 'Unable to inspect remote object. Make sure you have ' \
'the python-debuginfo package installed.'
self.object_output.set_text(value) self.object_output.set_text(value)
def get_object_buttons(self, group=[]): def get_object_buttons(self, group=[]):
......
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