Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

No tedious setting breakpoints and play/resume ten times to see the loop you want. Tracing makes it easy to see what loops are doing.

...

Code Block
languagecpp
void APPrepeatSentence(const BASstring& Sentence){
   BAS_FUNCTION(APPrepeatSentence);
   BAS_VAR(Sentence);
   BASstring Result;
   BAS_TRC("About to print hello world...");
   for (int i=0; i < 4; i++){
      BAS_VAR(i);
      Result = Result + Sentence + "\n";
   }
   BAS_HEX("Result", Result.data(), Result.size());
   BASout << Result;
}

With a graphical debugger it is a much more tedious process of having manually step through and set breakpoints and so on which all has quite a high learning curve. With tracing one never has to learn that.