On almost every other code editor, including the one on OnlineGDB, if you put your mouse cursor in the blank space to the left of the line number and click, a red dot will appear. This will allow these line(s) to be watched by the debugger. You can also set flags in the debugger when it's running as well.