mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-05 21:44:46 +00:00
writeStackTrace now officially has no IO effect anymore for more convenient debugging
This commit is contained in:
@@ -386,9 +386,9 @@ proc writeStackTrace() =
|
||||
when hasSomeStackTrace:
|
||||
var s = ""
|
||||
rawWriteStackTrace(s)
|
||||
showErrorMessage(s)
|
||||
cast[proc (s: string) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)(s)
|
||||
else:
|
||||
showErrorMessage("No stack traceback available\n")
|
||||
cast[proc (s: string) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)("No stack traceback available\n")
|
||||
|
||||
proc getStackTrace(): string =
|
||||
when hasSomeStackTrace:
|
||||
|
||||
Reference in New Issue
Block a user