[Sugar-devel] Debugging sugar-datastore (and similar dbus-connected services)

Martin Langhoff martin.langhoff at gmail.com
Wed Sep 19 16:41:44 EDT 2012


On Wed, Sep 19, 2012 at 4:15 PM, Martin Langhoff
<martin.langhoff at gmail.com> wrote:
> I'm debugging odd situations w Sugar datastore, and I wonder whether
> there is any tricks to debugging python programs that are run under
> dbus.
>
> I can see the sugar-datastore PID growing steadily while I test, which
> means that it's dying and respawning plenty, likely from unhandled
> exceptions...

Adding to /usr/bin/datastore-service

# debugging
logerr=open(os.path.join(log_dir, 'datastore.err'), 'w')
sys.stderr=logerr

does not help in the least. The file is created, but nothing is ever
written there.

Any hints?



m
-- 
 martin.langhoff at gmail.com
 martin at laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff


More information about the Sugar-devel mailing list