Debug IDs for missing sourcemaps: show them right in the stacktrace

See #158
This commit is contained in:
Klaas van Schelven
2025-07-23 10:57:19 +02:00
parent 1983633b38
commit c4fe1c1292
2 changed files with 11 additions and 1 deletions

View File

@@ -146,7 +146,11 @@
{% if "context_line" not in frame or frame.context_line is None %}{% if not frame.vars %}{# nested ifs as a subsitute for brackets-in-templates #}
<div class="mt-6 mb-6 italic">
No code context or variables available for this frame.
{% if frame.debug_id %}{# only in the no-vars-either case to avoid excessive if-nesting (at the cost of completeness, but "will yes-vars, broken debug_id even be a case? For now we hope not) #}
No sourcemaps found for Debug ID {{ frame.debug_id }}
{% else %}
No code context or variables available for this frame.
{% endif %}
</div>
{% endif %}{% endif %}