Skip to content

Commit

Permalink
Add debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
t0anhh committed Mar 21, 2024
1 parent 8d67352 commit 4444c35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/stringify.ak
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4444c35

Please sign in to comment.