Home » Community » Newbie corner » Issue seeing results of DUMP in built in tutorials
Issue seeing results of DUMP in built in tutorials [message #44853] |
Wed, 08 July 2015 17:59  |
frank.taylor
Messages: 1 Registered: July 2015
|
Junior Member |
|
|
Hello, sorry if this is posted somewhere. I searched and didn't see anything.
I was going through the tutorials and noticed that the DUMP() macros weren't displaying output anywhere I could find. I managed to get it to work by adding StdLogSetup(LOG_COUT); as the first step in the program and getch() (from conio.h) as the last step. For instance this is the modified code for the Core03 tutorial:
#include <Core/Core.h>
#include <conio.h> // Added this
using namespace Upp;
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_COUT); // Added this
SetDefaultCharset(CHARSET_UTF8);
WString x = "characters 280-300: ";
for(int i = 280; i < 300; i++)
x.Cat(i);
DUMP(x);
String y = x.ToString();
DUMP(y);
y.Cat(" (appended)");
x = y.ToWString();
DUMP(x);
getch(); // Added this
}
Anyway, not sure if I overlooked something but hopefully this helps if anyone else has the same problem.
Thanks!
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 18:38:50 CEST 2025
Total time taken to generate the page: 0.00561 seconds
|