Debugging Arduino firmware with print statements // ifdef, header files, trace

preview_player
Показать описание
#debugging #print #arduino
We will get to the basics of using a simple debugging technique: the print statements. We will work our way step by step from adding some conditional statements, to adding a header file and finally a library. To toggle the debug flag on and off will still be as simple as commenting on the first line. The original firmware code size will be exactly the same when the debug flag is off. In the end, I share my thoughts on another type of debugging as well as how important it is to incorporate developer happiness in debugging and make it as simple as possible.

⏰ TIMESTAMPS
0:00 Intro
00:30 No print statements
01:33 Add print statements
03:14 Add conditional #ifdef for debug
04:46 Define a function
06:40 Add more info as part of debugging
08:40 Add header file
09:57 Add a library instead
12:56 Add more functions
14:47 My thoughts on using a debugger and developer happiness!

‣ Some links below are affiliate. I receive a small commission at no extra cost to you.

📻 PRODUCTS MENTIONED

🎩 DEMO FILES

📺 WATCH NEXT

🔗 LINKS SHOWN

🔌 TOOLS USED
Рекомендации по теме
Комментарии
Автор

I appreciate the way the concepts in many of your videos are presented in steps. I can feel myself getting smarter.

kenrod
Автор

Sometimes, just an LED is the "lightest" debugging tool. Nice video !

mumbaiverve
Автор

I have to login to like and comment on this video. What a clearly explanation. Very helpful video. Thank you! Keep it up!

vantamang
Автор

helpful video~ I have not used arduino-cli, looks cool

ralphchen
Автор

Which programming language is best for embedded systems

ArshadKhan-cbdo
visit shbcf.ru