getappmap / appmap-dotnet

Records the execution of .NET programs, to create scenarios in AppMap files
Other
11 stars 3 forks source link

Source code location capture #12

Open dividedmind opened 3 years ago

dividedmind commented 3 years ago

Source code location isn't embedded directly in .net binaries, but is stored separately in .pdb files. There is some infrastructure in the runtime to locate and extract the relevant data, but it can turn out to be quite difficult to use; the instrumentation method itself can't use managed code reliably, and these routines are managed. For this reason this task can turn out to be more complicated than it can be expected.

kgilpin commented 3 years ago

Inside of an IDE environment, it may not be necessary to know the source code location in order to open the code. Class name and method name may be enough to find the right source.

On Fri, Feb 12, 2021 at 8:24 AM Rafał Rzepecki notifications@github.com wrote:

Source code location isn't embedded directly in .net binaries, but is stored separately in .pdb files. There is some infrastructure in the runtime to locate and extract the relevant data, but it can turn out to be quite difficult to use; the instrumentation method itself can't use managed code reliably, and these routines are managed. For this reason this task can turn out to be more complicated than it can be expected.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/applandinc/appmap-dotnet/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAVC63M7MEWH7XSXUOHJALS6UTZFANCNFSM4XQV2NQA .