added system.getStackTrace; docgen refactoring (incomplete)
This commit is contained in:
parent
c3770ebd06
commit
c323ec0155
13 changed files with 744 additions and 509 deletions
|
|
@ -246,6 +246,13 @@ proc WriteStackTrace() =
|
|||
else:
|
||||
writeToStdErr("No stack traceback available\n")
|
||||
|
||||
proc getStackTrace(): string =
|
||||
when hasSomeStackTrace:
|
||||
result = ""
|
||||
rawWriteStackTrace(result)
|
||||
else:
|
||||
result = "No stack traceback available\n"
|
||||
|
||||
when defined(endb):
|
||||
var
|
||||
dbgAborting: bool # whether the debugger wants to abort
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue