Feedback
Debugger line mapping is off for metadata-namespaced source files
- Status
- Fixed
- Fixed in
- v26.7.1
- Source discussion
- https://forum.objo.dev/d/449-namespace-in-2665-dont-work-at-all
- Last updated
- 2026-07-05
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
When a source file is assigned a namespace through Studio metadata, Studio compiles it by generating a Namespace ... End Namespace wrapper. Debugger source mapping did not account for those generated wrapper lines, so breakpoints and debugger pauses in namespaced sources could be shifted by one line. In the JSONSerializer repro, moving JSONConvert into the Einhugur namespace made the debugger pause in DeserializeObject() with the current line on a blank line instead of the statement that actually matched the saved breakpoint.