Skip to content

[cli]: show function debug name in VM fault output (PHX-070-p8) - #156

Merged
JamalLyons merged 1 commit into
trunkfrom
agent/v0-sprint/20260621-vm-error-fn-name
Jun 21, 2026
Merged

[cli]: show function debug name in VM fault output (PHX-070-p8)#156
JamalLyons merged 1 commit into
trunkfrom
agent/v0-sprint/20260621-vm-error-fn-name

Conversation

@JamalLyons

Copy link
Copy Markdown
Member

Summary

  • Extend format_vm_error to resolve section 5 function debug names via PcSpanTable::lookup_function_name
  • VM fault output now shows {kind} in {name} at {path}:{line}:{col} when names are present; falls back to location-only format for v1 section 5 payloads without names
  • Integration tests assert function names appear in nested helper and indirect callee trap stderr

Test plan

  • just fmt / just fmt-check
  • cargo test -p phx-cli vm_diag
  • cargo test -p phx-integration-tests --test sourcemap_run --test sourcemap_multimodule --test release_build
  • just pre-commit

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@JamalLyons
JamalLyons merged commit d6b30f5 into trunk Jun 21, 2026
1 check passed
@JamalLyons
JamalLyons deleted the agent/v0-sprint/20260621-vm-error-fn-name branch June 21, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant