News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Is there a DEBUG mode?

Started by ddamron, January 07, 2008, 11:58:19 AM

Previous topic - Next topic

ddamron

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

The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.

totallymaxed

#1
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
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

ddamron

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 only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.

totallymaxed

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
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

ddamron

Hmm, that's where I was...
Ok, I'll keep looking...

Thanks anyway..

Dan
The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.