Securifi Community Forum

Securifi Products => Almond+ => Topic started by: FreeRollen on April 01, 2016, 12:07:15 pm

Title: How to debug - Sample Switch App SDK
Post by: FreeRollen 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
Title: Re: How to debug - Sample Switch App SDK
Post by: SecureComp 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.
Title: Re: How to debug - Sample Switch App SDK
Post by: FreeRollen 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