943,846 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 694
  • C# RSS
Sep 21st, 2009
0

C# tool help

Expand Post »
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.
Similar Threads
Reputation Points: 8
Solved Threads: 3
Junior Poster
MxDev is offline Offline
137 posts
since Sep 2007
Sep 21st, 2009
0

Re: C# tool help

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?
Reputation Points: 341
Solved Threads: 233
Posting Shark
DdoubleD is offline Offline
984 posts
since Jul 2009
Sep 21st, 2009
0

Re: C# tool help

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.
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009
Sep 22nd, 2009
0

Re: C# tool help

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.
Reputation Points: 55
Solved Threads: 18
Junior Poster
papanyquiL is offline Offline
168 posts
since May 2009
Sep 22nd, 2009
0

Re: C# tool help

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.
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009
Sep 22nd, 2009
0

Re: C# tool help

Click to Expand / Collapse  Quote originally posted by sknake ...
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.
Reputation Points: 55
Solved Threads: 18
Junior Poster
papanyquiL is offline Offline
168 posts
since May 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Know opened files in Photoshop CS4
Next Thread in C# Forum Timeline: c# escape characters cause [] in listview





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC