[Reference] Debug mode activation

Modified on Tue, 21 Sep 2021 at 01:43 PM

Hi all,

It's very useful for us to know the output of a code with the debug mode activated when there are issues with any module. With debug mode enabled, some information is printed through the USB that helps us to find where could be the error.

For debug-mode activation you should modify one line at the .h file at the beginning of the library you are interested and you normally can choose between 3 levels.

CODE: SELECT ALL

#define _3G_debug_mode    0    <---------deactivated

#define _3G_debug_mode    1    <---------some additional info

#define _3G_debug_mode    2    <---------full info
To find the .h libraries files:
waspmote-pro-ide-vXXX/libraries
or at the core libraries:
waspmote-pro-ide-vXXX/hardware/waspmote/avr/cores/waspmote-api

At some libraries, there is just a commented line that you have to uncomment.

Regards

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article