dumping all existing variables | Bytes (2024)

Home Posts Topics Members FAQ

Erwin Moller

Hi,

Does anybody know a way to dump all used variables and their content?
Is that at all possible?

I am looking for something like print_r(), but have no clue what to feed the
function.
I am mainly interested in variabled created in the script itself, not
$_SERVER and the like.
(I need this for debugging, and get tired of echoing all I might be
interested in.)
TIA

Regards,
Erwin Moller

Feb 2 '07 #1

3 dumping all existing variables | Bytes (1) 15028 dumping all existing variables | Bytes (2)

Toby A Inkster

Erwin Moller wrote:

Does anybody know a way to dump all used variables and their content?
Is that at all possible?

print_r($GLOBAL S) might be what you're looking for.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/CSS/Javascript/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!

Feb 2 '07 #2

Erwin Moller

Toby A Inkster wrote:

Erwin Moller wrote:
>Does anybody know a way to dump all used variables and their content?
Is that at all possible?

print_r($GLOBAL S) might be what you're looking for.

Excactly!
I did try print_r($_GLOBA LS) for some mysterious reason.

Thanks Toby.

Regards,
Erwin Moller

Feb 2 '07 #3

Toby A Inkster

Erwin Moller wrote:

I did try print_r($_GLOBA LS) for some mysterious reason.

'$GLOBALS' is annoyingly named, given that all the other big superglobals
start with '$_'. I'm often caught out by it.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/CSS/Javascript/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!

Feb 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6 1985

dumping INDEX's

by: Greg Brant |last post by:

Hi, how can i backup a table / entire DB and get the index's as well as the data / create table's etc cheers Greg

MySQL Database

2 3306

Losing Session Variables when launching app with pre-existing I.E. window open

by: Terry |last post by:

When launching our application with Internet Explorer already opened, but not pointing to our web server, the session variables disappear. If you open I.E. after launching our app, it works fine. It also works fine if you have the option set to 'Reuse Windows for Lauching Shortcuts' checked in the I.E. properties and launch our app from a shortcut, but it fails it you launch it from the I.E. favorites or some other method that won't take...

ASP / Active Server Pages

1 2541

How Do I create a new record from an existing record

by: Tom Cusick |last post by:

We have a Job Shop database. When I get an order in I put all the line item information into the database. Some orders have multiple lines and most of the information is the same. (eg. Customer Name, PO, Due Date, Received, etc.) 2 questions: 1. I have a button to create a new record on my switchboard, but what I would like that button to do is create a new record but enter in the next job number. Our job numbers are 'H1001', so I...

Microsoft Access / VBA

2 3984

Dumping query result into Excel spreadsheet

by: Peter |last post by:

I have a Query called "DATA" that contains 60 records with 6 fields of data. I want to dump the query results into a specific xls file. The first worksheet of this xls file has space for the query in the first 6 fields (columns A - F) but the rest of the columns (G - T) has values and formulas based on data needed from the Query. The second worksheet has graphs based on all the data of the first worksheet.

Microsoft Access / VBA

10 4015

prevent dumping core file?

by: ken |last post by:

hello, i'm writing a c program on a linux system. i'm debugging a segmentation fault but i don't want it to dump a core file because the memory footprint of the program is over 300Mb and i don't need it to generate a 300Mb file every time I add a new printf statement to debug the code. can i do something to prevent it from dumping the core file even when it seg faults? (is this a unix/linux thing, or a c thing?) thanks!

C / C++

3 3267

How turn off memory leak dumping?

by: noleander |last post by:

My Vis C++ program takes forever to exit. Reason: it is dumping potential memory leaks. I like finding leaks once a month, but not every time I run. How do I turn mem leak dumping off? I looked in help, and it said leak dumping is enabled with #define CRTDBG_MAP_ALLOC ... but I do not have that #define anywhere in my code. I _do_ have the /RTC1 (same as both /RTCs and /RTCu ) but the help for those says nothing about memory leaks;...

.NET Framework

3 1947

Dumping variables passed with SUBMIT

by: Brian.Abernathy |last post by:

This is probably a simple thing to do, and it seems like I managed to do this a few years ago, but I can't find a good example. I'm trying to create a 'generic' page that I can call during my testing, and it will take the variables passed by SUBMIT (not POST) and display a web page showing all the variables and their values. Does anyone have a good example that they would care to share? The page will be on an Apache server, under *nix.

Javascript

7 2352

Command for dumping stored procedures

by: gomzi |last post by:

hi, I would like to know the command for dumping stored procedures. Thought that I knew the command and dumped the db using the -R option, only to realise that dumping of procedures had failed because of some delimiter problem. Now , I would like to transfer only the stored procedures. Also, I would like to know as to how I could dump the procedures because changing the delimiter to say $$ from the normal ; also doesn't help because it is...

MySQL Database

4 2158

Moving existing application from using Session State InProc to SQL

by: Alex |last post by:

Hello, This is a follow-up to my earlier post about having issues with our application pool recycling. We currently use Session State InProc, but if I were to choose to move the existing application to SQL instead, would the only change in the application be the SessionState setting within web.config? I know I'd also need to setup our MS SQL database to handle sessions (detailed in MS Article 317604), but outside of this, is there...

ASP.NET

8815

What is ONU?

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...

General

8713

Changing the language in Windows 10

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,...

Windows Server

9318

Problem With Comparison Operator <=> in G++

by: Oralloy |last post by:

Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...

C / C++

9187

Maximizing Business Potential: The Nexus of Website Design and Digital Marketing

by: jinu1996 |last post by:

In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...

Online Marketing

9033

Discussion: How does Zigbee compare with other wireless protocols in smart home applications?

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...

General

7960

AI Job Threat for Devs

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...

Career Advice

5961

Couldn’t get equations in html when convert word .docx file to html file in C#.

by: conductexam |last post by:

I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...

C# / C Sharp

4730

Windows Forms - .Net 8.0

by: adsilva |last post by:

A Windows Forms form does not have the event Unload, like VB6. What one acts like?

Visual Basic .NET

3 2113

Comprehensive Guide to Website Development in Toronto: Expert Insights from BSMN Consultancy

by: bsmnconsultancy |last post by:

In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

General

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisem*nts and analytics tracking please visit the page.

dumping all existing variables | Bytes (2024)

References

Top Articles
Latest Posts
Article information

Author: Greg Kuvalis

Last Updated:

Views: 6391

Rating: 4.4 / 5 (75 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Greg Kuvalis

Birthday: 1996-12-20

Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267

Phone: +68218650356656

Job: IT Representative

Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics

Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.