Windows Develop Bookmark and Share   
 index > Windows Forms General > Output every line being executed, identify code which hangs sometimes
 

Output every line being executed, identify code which hangs sometimes

Hi,

Many times we need to know what exactly is the line being executed.. its tough to write debug statement at many places. Is there any way through which we can write which line is being executed at present...for example if there are 10 lines of code... i want something like this

line 1 under execution...
line 2 under execution...
line 3 under execution...
line 4 under execution...

manually doing it is a bit tough, is there any automatic thing for this ?

Thanks.
sujit1779  Tuesday, October 06, 2009 5:00 AM
There is not.  Debugging a hang is easy, just use Debug + Break All and look at the call stack of the threads you use.

Hans Passant.
nobugz  Tuesday, October 06, 2009 6:03 AM
You can't debug without source code.

Hans Passant.
  • Marked As Answer bysujit1779 4 hours 29 minutes ago
  •  
nobugz  Thursday, October 08, 2009 10:15 AM
There is not.  Debugging a hang is easy, just use Debug + Break All and look at the call stack of the threads you use.

Hans Passant.
nobugz  Tuesday, October 06, 2009 6:03 AM
Thanks Hans. Sometimes code being executed is from some third party dll, suppose I have the PDB file of that dll, can I debug the code of that third party DLL ?

Thanks.
sujit1779  Thursday, October 08, 2009 8:12 AM
You can't debug without source code.

Hans Passant.
  • Marked As Answer bysujit1779 4 hours 29 minutes ago
  •  
nobugz  Thursday, October 08, 2009 10:15 AM
Thanks
sujit1779  4 hours 29 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• Display Windows form with call to dll?
• Calling open another form
• richtextbox hideselection
• DataGridView & Custom cell painting
• Message transparent window
• MonthCalendar Control BoldedDates issue
• Setting variables on Parent form
• Winform app looping... how can I find out where?
• How do I loop through a Datagridview control??
• Running Code on Form Load