LinuxMCE Forums

General => Developers => Topic started by: ddamron on January 07, 2008, 11:58:19 AM

Title: Is there a DEBUG mode?
Post by: ddamron on January 07, 2008, 11:58:19 AM
I'm trying to trace some program flow in the GSD.. specifically receiving commands from DCE..
Looking at the source, it looks like there is a debug mode..

Does anyone know how to enable debug for GSD?  verbose level?

I did search the wiki for DEBUG, but didn't come across anything useful..

Thanks,

Dan

Title: Re: Is there a DEBUG mode?
Post by: totallymaxed on January 07, 2008, 12:52:56 PM
Quote from: ddamron on January 07, 2008, 11:58:19 AM
I'm trying to trace some program flow in the GSD.. specifically receiving commands from DCE..
Looking at the source, it looks like there is a debug mode..

Does anyone know how to enable debug for GSD?  verbose level?

I did search the wiki for DEBUG, but didn't come across anything useful..

Thanks,

Dan



I think its down to using the logs to trace whats happening Dan. The Devs suggest the following;

Two solutions:

1) if it's an syntax error in the ruby code, check the logs for that gsd device, it should display the error/line
2) you can use logs in gsd code (open a file, write the status, close the file)

Andrew
Title: Re: Is there a DEBUG mode?
Post by: ddamron on January 07, 2008, 01:12:51 PM
Yeah, that's what I'm doing,

I'm trying to find the code where it's reporting 'GSD-DispatchMessage - ignoring 192 because is useless'

I've searched all the Generic_Serial_Device code to no avail..
Title: Re: Is there a DEBUG mode?
Post by: totallymaxed on January 07, 2008, 02:25:17 PM
Quote from: ddamron on January 07, 2008, 01:12:51 PM
Yeah, that's what I'm doing,

I'm trying to find the code where it's reporting 'GSD-DispatchMessage - ignoring 192 because is useless'

I've searched all the Generic_Serial_Device code to no avail..


The guys at Pluto say you should look here;

src/Generic_Serial_Device ... the cpp files

Hope that helps you Dan

Andrew
Title: Re: Is there a DEBUG mode?
Post by: ddamron on January 07, 2008, 03:47:41 PM
Hmm, that's where I was...
Ok, I'll keep looking...

Thanks anyway..

Dan