From e359824c4dc2efb9f4898369df08b3b6fddb2e3f Mon Sep 17 00:00:00 2001 From: Maddy Thorson Date: Tue, 2 Feb 2021 18:08:39 -0800 Subject: [PATCH] Logs also go to console --- src/Static/Calc.bf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Static/Calc.bf b/src/Static/Calc.bf index c47d2de..d8efde8 100644 --- a/src/Static/Calc.bf +++ b/src/Static/Calc.bf @@ -113,6 +113,7 @@ namespace Strawberry static public void Log() { Debug.WriteLine("***"); + System.Console.WriteLine("***"); } [Inline] @@ -120,7 +121,9 @@ namespace Strawberry { String string = scope String(); v.ToString(string); + Debug.WriteLine(string); + System.Console.WriteLine(string); } [Inline] @@ -128,21 +131,27 @@ namespace Strawberry { String string = scope String(); del(string); + Debug.WriteLine(string); + System.Console.WriteLine(string); } [Inline] static public void Log(StringView str, params Object[] args) { let string = StringArgs(scope String(str), params args); + Debug.WriteLine(string); + System.Console.WriteLine(string); } [Inline] static public void Log(char8* str, int len) { String s = scope String(str, len); + Debug.WriteLine(s); + System.Console.WriteLine(s); } } }