0

hi guys,
Is there any tool for C# that shows the running fragments of source code
at runtime or at least facilitate the navigation into source code I mean reading the source code.

4
Contributors
5
Replies
6
Views
8 Years
Discussion Span
Last Post by papanyquiL
0

I'm not sure what you are asking. Are you wanting a stack trace that allows you to navigate into the points (method calls) of execution?

0

If you ship your application with source code and debug symbols you can get the callstack from Environment.StackTrace which will contain the file name and line number. With that information you could open it up in your favorite text editor.

0

You can read the source of .NET assemblies using .NET Reflector. You can also use ildasm provided with the SDK but that's only if you can read IL fairly well.

0

yes but reading the source with the reflector won't give you accurate line numbers without having debug symbols since comments are ommited and the source isn't exactly decompiled 100% as it was.

0

yes but reading the source with the reflector won't give you accurate line numbers without having debug symbols since comments are ommited and the source isn't exactly decompiled 100% as it was.

This is true. But then again I would think that there wouldn't be any third-party tool that would give you 100% accurate source feedback. In that case I guess you'd be right; it should be done through the compiler.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.