followup #16400; use use -d:nimCompilerStackraceHints in more places (#18282)

This commit is contained in:
Timothee Cour 2021-06-16 23:04:12 -07:00 • committed by GitHub
commit 3c854e8c24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,9 @@ import
from modulegraphs import getBody
when defined(nimCompilerStackraceHints):
import std/stackframes
const
debugEchoCode* = defined(nimVMDebug)
@ -2000,6 +2003,8 @@ proc procIsCallback(c: PCtx; s: PSym): bool =
dec i
proc gen(c: PCtx; n: PNode; dest: var TDest; flags: TGenFlags = {}) =
when defined(nimCompilerStackraceHints):
setFrameMsg c.config$n.info & " " & $n.kind & " " & $flags
case n.kind
of nkSym:
let s = n.sym