<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Breakpoints</title><link>https://sourceforge.net/p/dumpmon/wiki/Breakpoints/</link><description>Recent changes to Breakpoints</description><atom:link href="https://sourceforge.net/p/dumpmon/wiki/Breakpoints/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 25 Nov 2012 12:24:51 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dumpmon/wiki/Breakpoints/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Breakpoints modified by Andrey Sharoyko</title><link>https://sourceforge.net/p/dumpmon/wiki/Breakpoints/</link><description>After the initialization made and variables added to the watchlist, you can use breakpoints, adding the *breakpoint()* function call with any type identifier that appliable to call with *Serial.print()*.

    :::c++
    void loop() {
      ++count;                      // Incrementing counters by one.
      ++lcount;
      breakpoint("counters watch"); // Breakpoint.
      if (count &amp; 1)                // Changing string value with odd counter value.
        text = "Example";
      else
        text = "Debug";
      breakpoint("text watch");     // Another breakpoint.
      if (count &amp; 5)                // Blinking the LED fast enough to step debug.
        digitalWrite(LEDPIN, HIGH);
      else
        digitalWrite(LEDPIN, LOW);
    }

__NB.__ Don't attempt to call *breakpoint()* function from interrupt handlers, it won't work.

[Debug session with Simple Dumping Monitor]
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrey Sharoyko</dc:creator><pubDate>Sun, 25 Nov 2012 12:24:51 -0000</pubDate><guid>https://sourceforge.netbd5c2e0aeec1f96d88b3279124df0fb047085ac6</guid></item></channel></rss>