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,reques t,server,etc... for debugging purposes. I'd like to also
display the local variables.
TIA
-Chris 2 2745
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" <hohmannATyahoo DOTcom> wrote in message
news:OC******** ******@TK2MSFTN GP12.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,reques t,server,etc... for debugging purposes. I'd like to also display the local variables.
TIA -Chris
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:e4******** ******@TK2MSFTN GP11.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" <hohmannATyahoo DOTcom> wrote in message news:OC******** ******@TK2MSFTN GP12.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,reques t,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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andrey Tatarinov |
last post by:
Hi.
It would be great to be able to reverse usage/definition parts in
haskell-way with "where" keyword. Since Python 3 would miss lambda, that
would be extremly useful for creating readable sources.
Usage could be something like:
>>> res = where:
>>> def f(x):
|
by: Peter Ammon |
last post by:
I would like to share a variable between two functions defined in two
separate source files; no other functions will need the global variable
so I'd prefer to not give it file scope. Thus, I want a variable with
local scope, external linkage, and static storage.
I believe I can do this for the file that does not define the variable
by declaring it inside a function. Can I also avoid giving it file
scope in the file that does define the...
|
by: Stefan Turalski \(stic\) |
last post by:
Hi,
I done sth like this:
for(int i=0; i<10; i++) {...}
and after this local declaration of i variable I try to inicialize
int i=0;
|
by: Danny Colligan |
last post by:
In the following code snippet, I attempt to assign 10 to every index in
the list a and fail because when I try to assign number to 10, number
is a deep copy of the ith index (is this statement correct?).
.... number = 10
....
So, I have to resort to using enumerate to assign to the list:
|
by: Zytan |
last post by:
I see that static is more restricted in C# than in C++. It appears
usable only on classes and methods, and data members, but cannot be
created within a method itself. Surely this is possible in C# in some
way? Or maybe no, because it is similar to a global variable (with its
scope restricted) which C# is dead against?
Zytan
| |
by: pauldepstein |
last post by:
#include <iostream>
using namespace std;
double & GetWeeklyHours()
{
double h = 46.50;
double &hours = h;
return hours;
}
//---------------------------------------------------------------------------
|
by: Hoi Wong |
last post by:
With the XSLT 1.0 engine that I was forced to use, I have to parse old XML
scripts where the number (to be parsed and saved into $EPISODE_NUMBER_RAW)
that I want to parse is written with a comma seperator if it goes beyond 3
digits. i.e. the variable might be parsed as a string '1,324' or a number
56, depending on which XML file I have.
I was trying to get rid of the comma seperator by breaking the string into
two parts (that number will...
|
by: Matt Nordhoff |
last post by:
Sebastjan Trepca wrote:
Python doesn't like when you read a variable that exists in an outer
scope, then try to assign to it in this scope.
(When you do "a = b", "b" is processed first. In this case, Python
doesn't find a "value" variable in this scope, so it checks the outer
scope, and does find it. But then when it gets to the "a = " part...
well, I don't know, but it doesn't like it.)
|
by: Erwin Moller |
last post by:
Hi group,
Consider this simple script (tested on FF3):
<script type="text/javascript">
test = 'outer';
for (var i=0;i<2;i++){
alert(test);
var test = 'inner';
alert (test);
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |