better backtrace section titles with added frame number
This commit is contained in:
parent
0be35251ba
commit
7ecdeec89e
1 changed files with 2 additions and 2 deletions
|
@ -99,9 +99,9 @@ backtrace = func(desc = nil, l = 0) {
|
||||||
}
|
}
|
||||||
if (l == 0) {
|
if (l == 0) {
|
||||||
var d = desc == nil ? "" : " '" ~ desc ~ "'";
|
var d = desc == nil ? "" : " '" ~ desc ~ "'";
|
||||||
print("\n" ~ _title("\n## backtrace" ~ d ~ " ##"));
|
print("\n" ~ _title("\n### backtrace" ~ d ~ " ###"));
|
||||||
} else {
|
} else {
|
||||||
print(_section(" called from: " ~ v[2] ~ ", line " ~ v[3] ~ ": "));
|
print(_section(sprintf("#%-2d called from %s, line %s:", l - 1, v[2], v[3])));
|
||||||
dump(v[0]);
|
dump(v[0]);
|
||||||
}
|
}
|
||||||
backtrace(nil, l + 1);
|
backtrace(nil, l + 1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue