12/11/2013

Coldfusion: How to view all variables: local, URL, Post and others?

I'm taking over a new project, and have to learn Coldfusion ASAP.

One of the first things I wanted to know, for testing purposes, is:

How can I see all the variable names that have been stored or have been sent to the program I'm working on?

Answer: Use the cfdump command.

Examples of different types of variables from the scopes.

Local Variables
<cfdump var="#VARIABLES#">

URL / Query String
<cfdump var="#URL#">

FORM / Post
<cfdump var="#FORM#">

Session
<cfdump var="#SESSION#">

Application
<cfdump var="#APPLICATION#">

Cookies
<cfdump var="#COOKIE#">

No comments :

Post a Comment