Skip to content

docs: add DWARF-absent heuristic fallback and --mock flag coverage#1033

Merged
Timi16 merged 1 commit into
Timi16:mainfrom
Elizabethxxx:docs/fix-948-949-dwarf-fallback-and-mock-flag
Apr 27, 2026
Merged

docs: add DWARF-absent heuristic fallback and --mock flag coverage#1033
Timi16 merged 1 commit into
Timi16:mainfrom
Elizabethxxx:docs/fix-948-949-dwarf-fallback-and-mock-flag

Conversation

@Elizabethxxx
Copy link
Copy Markdown
Contributor

Summary

  • docs/source-level-debugging.md: Adds a dedicated "When DWARF Is Absent: Heuristic Fallback" section that explains what the debugger does when DWARF debug info is missing from a binary — heuristic function-level mapping, the HEURISTIC_NO_DWARF reason code, breakpoint response fields (verified, reasonCode, setBreakpoint), how to compile with debug symbols, and how to use inspect to diagnose fallback mode. This brings the reference doc in line with the existing FAQ entry on the same topic.
  • docs/debug-cross-contract.md: Adds section 8 "Isolating Cross-Contract Calls with --mock" covering the flag syntax, a worked example mocking CalleeContract::increment, multi-callee mocking, the mock call log output, the VS Code launch.json configuration, and guidance on when to reach for this flag. References mock-helpers.md for advanced patterns. Subsequent sections renumbered accordingly.

Test plan

  • Review docs/source-level-debugging.md — new section appears after Requirements & Implementation, cross-links to source-map-health.md and faq.md are valid.
  • Review docs/debug-cross-contract.md — new section 8 appears between Key Takeaways and Git Workflow, examples match the --mock CONTRACT_ID.function=value format documented in src/cli/args.rs and exercised in tests/cli/output_tests.rs.
  • Confirm no other docs reference the old section numbering of debug-cross-contract.md in a way that is now broken.

closes #948
closes #949

…erage

Resolves two documentation gaps identified in the backlog:

- source-level-debugging.md: adds a dedicated "When DWARF Is Absent:
  Heuristic Fallback" section explaining the heuristic function-level
  mapping mode, the HEURISTIC_NO_DWARF reason code, breakpoint response
  fields, how to compile with debug symbols, and how to diagnose fallback
  mode via the inspect command. Complements the existing FAQ entry.

- debug-cross-contract.md: adds section 8 "Isolating Cross-Contract
  Calls with --mock" covering the --mock flag syntax, a worked example,
  multi-callee mocking, the mock call log, the VS Code launch.json
  config, and guidance on when to use the flag. References mock-helpers.md
  for advanced patterns. Renumbers the subsequent sections accordingly.

closes Timi16#948
closes Timi16#949
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 27, 2026

@Elizabethxxx Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Timi16 Timi16 merged commit 8786191 into Timi16:main Apr 27, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants