Choose style:

Author Topic: How to debug - Sample Switch App SDK  (Read 4614 times)

0 Members and 1 Guest are viewing this topic.

Offline FreeRollen

  • Newbie
  • *
  • Posts: 7
  • Thanks: 0
  • Registered : 01/03/2016
    YearsYearsYearsYearsYearsYearsYearsYearsYears
How to debug - Sample Switch App SDK
« on: April 01, 2016, 12:07:15 pm »
I installed the SDK on my Ubuntu machine.  I am now able to build and install Sample Switch App.  The switch app is run on my Almond+.  However. I really would like the capability to debug would like Simple Switch App on the my Almond+ but, i am not sure how do i accomplish this.   

Is it possible to debug apps on the almond+?
How do you go about debugging your apps on the Almond+?


Scott

Offline SecureComp

  • Backer
  • *
  • Posts: 541
  • Thanks: 1
  • Registered : 05/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: How to debug - Sample Switch App SDK
« Reply #1 on: April 01, 2016, 01:52:05 pm »
How do you mean exactly?

You can code your app to spit out errors and then capture them to the standard UNIX log files by using the appropriate command line syntax  when launching the app.

How you code the app will details what kind of info it will kick out on error conditions.

You won't be able to make changes on the fly while on the Almond obviously.

Can you provide an example of what you're thinking.
Kickstarter Backer
Securifi Wiki Editor and Beta Tester, Not a Securifi employee
Almond+, many sensors, IOS App, Android Apps and Widgets

Offline FreeRollen

  • Newbie
  • *
  • Posts: 7
  • Thanks: 0
  • Registered : 01/03/2016
    YearsYearsYearsYearsYearsYearsYearsYearsYears
Re: How to debug - Sample Switch App SDK
« Reply #2 on: April 01, 2016, 03:54:24 pm »
Ideally, I would like to step through the code and set break points and inspect variables.

How do you guys step through your code and debug errors?  Do u use GDB?

Having the capabilities to inspect variables would make it significant easier and faster to learn the SDK.

scott



 

Page created in 0.044 seconds with 18 queries.

bottleneck