Exception handling source line number

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?TXIgTWFqb3IgVGhvcmJ1cm4=?=

    Exception handling source line number

    I am using global.asax to handle my web application exceptions and have
    configured it to create event log entries for errors that occur and to
    display an error page advising the user to contact the helpdesk.
    I have an intermittent uninitialised object error that I am not able to
    reproduce in test and for which I really need the source line number.
    I believe this information is contained in the PDB but am not sure if one is
    created if I set the debug="true" flag in the compilation part of the
    system.web section of the web.config when the application is recompiled.

    Anyone any idea?

    Regards, Major.
    p.s. Major is my Christian name ;-)

  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: Exception handling source line number

    actually when debug is true, the line numbers are in the dll and only
    generated with debug. if compiled debug ion, then the stacktrace will include
    the line number.

    note: debug=true in web.config only controls the aspx pages (runtime
    compile, any code compiled by visual studio will honor the visual studio
    setting.

    -- bruce (sqlwork.com)


    "Mr Major Thorburn" wrote:
    I am using global.asax to handle my web application exceptions and have
    configured it to create event log entries for errors that occur and to
    display an error page advising the user to contact the helpdesk.
    I have an intermittent uninitialised object error that I am not able to
    reproduce in test and for which I really need the source line number.
    I believe this information is contained in the PDB but am not sure if one is
    created if I set the debug="true" flag in the compilation part of the
    system.web section of the web.config when the application is recompiled.
    >
    Anyone any idea?
    >
    Regards, Major.
    p.s. Major is my Christian name ;-)
    >

    Comment

    • =?Utf-8?B?TXIgTWFqb3IgVGhvcmJ1cm4=?=

      #3
      RE: Exception handling source line number

      Bruce, thanks for that.

      The web app was distributed to the server by copy and no precompile was
      carried out.
      Would the .cs files therefore be compiled with debug?

      Regards, Major.

      "bruce barker" wrote:
      actually when debug is true, the line numbers are in the dll and only
      generated with debug. if compiled debug ion, then the stacktrace will include
      the line number.
      >
      note: debug=true in web.config only controls the aspx pages (runtime
      compile, any code compiled by visual studio will honor the visual studio
      setting.
      >
      -- bruce (sqlwork.com)
      >
      >
      "Mr Major Thorburn" wrote:
      >
      I am using global.asax to handle my web application exceptions and have
      configured it to create event log entries for errors that occur and to
      display an error page advising the user to contact the helpdesk.
      I have an intermittent uninitialised object error that I am not able to
      reproduce in test and for which I really need the source line number.
      I believe this information is contained in the PDB but am not sure if one is
      created if I set the debug="true" flag in the compilation part of the
      system.web section of the web.config when the application is recompiled.

      Anyone any idea?

      Regards, Major.
      p.s. Major is my Christian name ;-)

      Comment

      Working...