C# tool help

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2007
Posts: 64
Reputation: MxDev has a little shameless behaviour in the past 
Solved Threads: 1
MxDev MxDev is offline Offline
Junior Poster in Training

C# tool help

 
0
  #1
Sep 21st, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 919
Reputation: DdoubleD is a jewel in the rough DdoubleD is a jewel in the rough DdoubleD is a jewel in the rough DdoubleD is a jewel in the rough 
Solved Threads: 147
DdoubleD DdoubleD is offline Offline
Posting Shark

Re: C# tool help

 
0
  #2
Sep 21st, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,230
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 576
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast

Re: C# tool help

 
0
  #3
Sep 21st, 2009
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.
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 112
Reputation: papanyquiL is on a distinguished road 
Solved Threads: 11
papanyquiL papanyquiL is offline Offline
Junior Poster

Re: C# tool help

 
0
  #4
Sep 22nd, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,230
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 576
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast

Re: C# tool help

 
0
  #5
Sep 22nd, 2009
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.
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 112
Reputation: papanyquiL is on a distinguished road 
Solved Threads: 11
papanyquiL papanyquiL is offline Offline
Junior Poster

Re: C# tool help

 
0
  #6
Sep 22nd, 2009
Originally Posted by sknake View Post
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.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC