Enumerate Local Variable Scope

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Enumerate Local Variable Scope

    Does anyone know of a way to enumerate the local variable scope? The
    reason I ask is that I have a function that dumps the contents of
    response,request,server,etc... for debugging purposes. I'd like to also
    display the local variables.

    TIA
    -Chris


    Chris Hohmann Guest

  2. Similar Questions and Discussions

    1. Variable scope
      What type of variable can you use that lasts between page refreshes is it possible or do i have to use session or a hidden field thanks
    2. Local Scope Variables
      Hi, I'm having a bit of trouble with using some local scope variables. I have a function where I want to define a variable, then use that...
    3. Local Variable Scope in Ruby2
      Hi, I was going through matz's slides from the Ruby Conference 2003, and was checking out what the slides claimed was the most regrettable behaviour...
    4. [PHP-DEV][2] Variable Scope
      On Sunday, Aug 31, 2003, at 06:16 America/New_York, Ard Biesheuvel wrote: Nothing; I wish to concede: If you look further down the example, you...
    5. variable scope in c#
      I'm calling this procedure from a custom validator OnServerValidate event. I keep getting the error : Use of unassigned local variable...
  3. #2

    Default Re: Enumerate Local Variable Scope

    I'd love it if someone replied and said, "That's not true; here's how," but
    I do not believe there is any way to loop through a variables collection or
    anything like that, other than to just code it yourself.

    Although you probably would not want to do this, you could use all session
    variables while debugging and loop through them though.

    Ray at work

    "Chris Hohmann" <hohmannATyahooDOTcom> wrote in message
    news:OCZBR7OUDHA.2116@TK2MSFTNGP12.phx.gbl...
    > Does anyone know of a way to enumerate the local variable scope? The
    > reason I ask is that I have a function that dumps the contents of
    > response,request,server,etc... for debugging purposes. I'd like to also
    > display the local variables.
    >
    > TIA
    > -Chris
    >
    >

    Ray at Guest

  4. #3

    Default Re: Enumerate Local Variable Scope

    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:e43pnfRUDHA.2196@TK2MSFTNGP11.phx.gbl...
    > I'd love it if someone replied and said, "That's not true; here's
    how," but
    > I do not believe there is any way to loop through a variables
    collection or
    > anything like that, other than to just code it yourself.
    >
    > Although you probably would not want to do this, you could use all
    session
    > variables while debugging and loop through them though.
    >
    > Ray at work
    >
    > "Chris Hohmann" <hohmannATyahooDOTcom> wrote in message
    > news:OCZBR7OUDHA.2116@TK2MSFTNGP12.phx.gbl...
    > > Does anyone know of a way to enumerate the local variable scope? The
    > > reason I ask is that I have a function that dumps the contents of
    > > response,request,server,etc... for debugging purposes. I'd like to
    also
    > > display the local variables.
    > >
    > > TIA
    > > -Chris
    > >
    > >
    >
    >
    Yeah, that's what I thought. I do enumerate the Session and Application
    scope as well. I've settled for eval'ing items in a "watch list". Thanks
    for the feedback.

    -Chris


    Chris Hohmann Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139