.NET IL offset in exception stack trace #595
Unanswered
KalleOlaviNiemitalo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like my SARIF-2.1.0 producer to include the .NET Framework Intermediate Language (IL) offsets when it produces an exception stack trace. Is there a conventional way to do that?
Related properties: notification.exception, exception.stack, stack.frames, stackFrame.location.
Currently, the
location
objects from this producer have location.physicalLocation properties that reference the source files and lines, and location.logicalLocations properties that reference the methods. If I don't find a more standards-based representation, I'll just addilOffset
into theproperties
property bag of thelogicalLocation
object.I considered the region.byteOffset and address.relativeAddress properties, but I don't see how to indicate that the IL offset is relative to the start of the method body as documented in StackFrame.GetILOffset. Because the producer does not know the byte offset of the method body from the start of the module, I don't think it can represent the method body as a nested artifact.
Beta Was this translation helpful? Give feedback.
All reactions