From 4444c35bef55c24da0e0f9acf090d8d091719363 Mon Sep 17 00:00:00 2001 From: Toanh Date: Thu, 21 Mar 2024 21:03:49 +0700 Subject: [PATCH] Add debugger --- lib/stringify.ak | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/stringify.ak b/lib/stringify.ak index 84e0a97..e5cdc0b 100644 --- a/lib/stringify.ak +++ b/lib/stringify.ak @@ -247,8 +247,7 @@ pub fn indent(str: String) { } pub fn log(self: a, msg: String, serializer: fn(a) -> String) -> a { - trace string.concat(msg, serializer(self)) - self + builtin.debug(string.concat(msg, serializer(self)), self) } fn do_indent(bytes: ByteArray, lvl: Int) {