Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've started writing a scope for the Unity Dash, but it seems not to return results.

I'd like to find out why: how can I debug my scope?

share|improve this question
up vote 3 down vote accepted

Scopes are normally activated by DBus, which makes them a bit trickier to debug. But at the same time they’re normal processes and can be run manually so that any warnings or debug statements are easily visible.

The recommendation is to start your scope manually from the command line and use the traditional debugging tools, such as gdb, valgrind, strace etc. Since scopes use DBus for internal IPC, a DBus monitor tool (such as Bustle) can be handy if you suspect any problems in this area.

enter image description here

You can also use the libunity-tool debugger, simply executing it's GUI from the command line libunity-tool -g. Just execute your scope manually or from the Dash, find the DBus path in the initial drop-down box, submit a search query and watch the results.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.