writeStackTrace now officially has no IO effect anymore for more convenient debugging
This commit is contained in:
parent
8c98277d5a
commit
6266c68ab6
3 changed files with 8 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue