want to have the possibility to step through my project, so I found the [TeensyDebug][/
https://github.com/ftrias/TeensyDebug] on GitHub. Everyone talking about this libary and how it’s implemented doesn’t seem to have any problems with it, however I do. For testing I used a simple blinky program and included a variable to have something to inspect. Here is my Code:
[code c++][/
#include <TeensyDebug.h>
int num = 250;
// the setup function runs once when you press reset or power the board
void setup() {
debug.begin(SerialUSB1);
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
num++;
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(num); // wait for a second
}]
I am using the right Serial Port to debug (i tested it), the USB Dual Serial USB Type and Hardware Debug GDB Stub as the build options, just as explained in the corresponding video tutorial. However when i upoad the code and attach Debug the code obviously stops at my breakpoint (since the LED isn't blinking anymore), but the Debugger is not in a halting state (i can't step into, over etc.)
If i remove every breakpoint and sart debugging i can pause once (then usually inside of the delay function) but no matter if i continue, step over or into it just continues and i can't pause again.
My assumption is that maybe the teensy doesn't respond back after being halted but i don't know how to fix it or get it to work properly. Thanks in advance.