VB .NET Line number

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • obsidian
    New Member
    • Apr 2008
    • 2

    VB .NET Line number

    Hi,

    Is there a way to get the line number where an event happens in VB .NET application?

    I'm using VB .NET 2008 and when a try catch statement is run I wan't to know what line it happens on. I have a custom function which writes to a debug file the stacktrace and time (This can be toggled on and off by the user). I know this can be found when debugging but I want to know when it is a release version, short of manually going through each try catch and typing in the line number I can't find anything.

    Thanks in advance for any help
  • obsidian
    New Member
    • Apr 2008
    • 2

    #2
    *bump* anyone any idea?

    Comment

    • kenobewan
      Recognized Expert Specialist
      • Dec 2006
      • 4871

      #3
      I suggest having the application error handling email you the full error message, while showing the user the customized version. HTH.

      Comment

      Working...