Sprinter: добавить отладку C-исходников и интеграцию VS Code
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include <sdbg.h>
|
||||
|
||||
volatile int total;
|
||||
|
||||
#define AUTHOR_LOG(tag, text) SDBG_LOG(tag, text)
|
||||
|
||||
int main(void)
|
||||
{
|
||||
total = 1;
|
||||
AUTHOR_LOG(after_one,
|
||||
"total=" "{total}");
|
||||
#if 0
|
||||
SDBG_LOG(inactive, "should not exist");
|
||||
#endif
|
||||
total = 2;
|
||||
return total;
|
||||
}
|
||||
Reference in New Issue
Block a user