Author Topic: Is there a DEBUG mode?  (Read 3331 times)

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Is there a DEBUG mode?
« 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

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

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Is there a DEBUG mode?
« Reply #1 on: January 07, 2008, 12:52:56 pm »
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
« Last Edit: January 07, 2008, 12:57:47 pm by totallymaxed »
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 http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Is there a DEBUG mode?
« Reply #2 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 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

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Is there a DEBUG mode?
« Reply #3 on: January 07, 2008, 02:25:17 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 http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Is there a DEBUG mode?
« Reply #4 on: January 07, 2008, 03:47:41 pm »
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.