Windows Vista Forums

Suggestion: Add function arguments to stack trace
  1. #1


    Axel Dahmen Guest

    Suggestion: Add function arguments to stack trace

    Hi,

    I'm having a problem investigating unexpected exceptions at our production system where these exceptions are logged into a file.

    I believe giving a stack trace containing only function prototypes is not sufficient to find a problem. I'd very much prefer a compiler option to add actual argument values to the stack trace.



    Something like:

    Cannot create a file when that file already exists.

    at System.IO.__Error.WinIOError(Int32 errorCode = 123456789, String maybeFullPath = true)
    at System.IO.__Error.WinIOError()
    at System.IO.File.Move(String sourceFileName = "C:\\Temp\\MyFile.txt", String destFileName = "C:\\Temp\\YourFile.txt")
    ...

    Your thoughts?

    Regards,
    www.axeldahmen.de
    Axel Dahmen

      My System SpecsSystem Spec

  2. #2


    Cor Ligthert[MVP] Guest

    Re: Suggestion: Add function arguments to stack trace

    Axel,

    First of all this is a discussion newsgroup for developers using Microsoft
    programs about direct developing problems, secondly it is used by MSDN to
    give help with subscriptions.

    However, there is a special website to give suggestions like you do.

    http://connect.microsoft.com

    Cor

    "Axel Dahmen" <keentoknow@xxxxxx> wrote in message
    news:uZjyR1K1JHA.4272@xxxxxx
    Hi,

    I'm having a problem investigating unexpected exceptions at our production
    system where these exceptions are logged into a file.

    I believe giving a stack trace containing only function prototypes is not
    sufficient to find a problem. I'd very much prefer a compiler option to add
    actual argument values to the stack trace.

    Something like:

    Cannot create a file when that file already exists.

    at System.IO.__Error.WinIOError(Int32 errorCode = 123456789, String
    maybeFullPath = true)
    at System.IO.__Error.WinIOError()
    at System.IO.File.Move(String sourceFileName = "C:\\Temp\\MyFile.txt",
    String destFileName = "C:\\Temp\\YourFile.txt")
    ...

    Your thoughts?

    Regards,
    www.axeldahmen.de
    Axel Dahmen


      My System SpecsSystem Spec

  3. #3


    Axel Dahmen Guest

    Re: Suggestion: Add function arguments to stack trace

    OK, I see. I've added a suggestion there then.

    Axel


    -------------------
    "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> schrieb im Newsbeitrag news:efuQNFS1JHA.1900@xxxxxx

    > Axel,
    >
    > First of all this is a discussion newsgroup for developers using Microsoft
    > programs about direct developing problems, secondly it is used by MSDN to
    > give help with subscriptions.
    >
    > However, there is a special website to give suggestions like you do.
    >
    > http://connect.microsoft.com
    >
    > Cor
    >
    > "Axel Dahmen" <keentoknow@xxxxxx> wrote in message
    > news:uZjyR1K1JHA.4272@xxxxxx
    > Hi,
    >
    > I'm having a problem investigating unexpected exceptions at our production
    > system where these exceptions are logged into a file.
    >
    > I believe giving a stack trace containing only function prototypes is not
    > sufficient to find a problem. I'd very much prefer a compiler option to add
    > actual argument values to the stack trace.
    >
    > Something like:
    >
    > Cannot create a file when that file already exists.
    >
    > at System.IO.__Error.WinIOError(Int32 errorCode = 123456789, String
    > maybeFullPath = true)
    > at System.IO.__Error.WinIOError()
    > at System.IO.File.Move(String sourceFileName = "C:\\Temp\\MyFile.txt",
    > String destFileName = "C:\\Temp\\YourFile.txt")
    > ...
    >
    > Your thoughts?
    >
    > Regards,
    > www.axeldahmen.de
    > Axel Dahmen
    >

      My System SpecsSystem Spec

Suggestion: Add function arguments to stack trace problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ -- GUI Hang Stack Trace -- Help Needed Saad .NET General 0 27 Aug 2009
Getting arguments from STDIN when command line arguments are missing Audun Gjerken PowerShell 4 05 Mar 2007
Passing arguments to a function Marco Shaw PowerShell 1 11 Dec 2006
displaying popup menu stack trace Ranj Avalon 1 28 Jun 2006
Suggestion: Consider shorter standard names for Alias.Function, and Variable PSDrives Alex K. Angelopoulos [MVP] PowerShell 0 20 Jun 2006