MACROMEDIA COLDFUSION 5 - CFML Manual de usuario Pagina 3

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 11
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 2
Getting Started
You will need both:
the Eclipse IDE (Integrated Development Environment), which is a free download from
eclipse.org
the ColdFusion 8 Eclipse Extensions, which are free from
Adobe.com
Download and install the free Eclipse IDE, unless you already have it installed. You might
already have it if, for instance, you have FlexBuilder or CFEclipse. You can obtain it at
http://www.eclipse.org/
. The CF8 debugger is supported on Eclipse version 3.1.2 or 3.2.
Installing Eclipse is beyond the scope of this article, but the good news is that it’s really just
a matter of saving the provided Eclipse directory onto your le system and running the
Eclipse executable (such as Eclipse.exe on Windows). The Eclipse site explains installation on
all supported operating systems.
Now download and install the ColdFusion 8 extensions for Eclipse, a zip le available at
http://www.adobe.com/support/coldfusion/downloads.html#cfdevtools
. The process is very
There’s no need to have write access to the code.
What if you need to debug some code that is protected so that you can’t edit it
anyway? Debuggers don’t require you to have write access. When you’re in
production or on a server where you don’t have edit permissions, this can be a
valuable benet.
You don’t need to enable ColdFusion’s debugging output.
Similarly, if you don’t have access to turn on ColdFusion 8’s debugging output, you
can still use the debugger.
CFDUMP will not always suce to solve a problem.
When you are at a breakpoint, you can see the value of all variables in all scopes. The
CF8 debugger has a very easy-to-use tree view of the scopes. This includes query
results. And since you can see everything, you may be able to learn something about
the variables or make connections that you might not have thought of otherwise.
You can discover the ow of execution of the request.
Debuggers will display a clear visual representation of the ow of a request. You
can readily see whether the code went into a certain IF statement or loop, or if it
included a le or called a custom tag or method. This is also a great way to introduce
a new developer to your code or to CFML in general.
The debugger stops on error.
This capability in the CF8 debugger puts you in the editor at the line and page where
the error occurred. This especially helps if you have debugging output disabled or
restricted.
You can view the stack trace during execution.
Output from traditional ColdFusion debugging shows at the end of the page
request what les were called to run the entire request, but that doesn’t really help
you understand which were opened just to get to a particular line of code. In the
CFML debuggers, the stack trace pane displays all the les you opened to get to any
breakpoint.
The Fusion Authority Quarterly Update Tools 89
Vista de pagina 2
1 2 3 4 5 6 7 8 9 10 11

Comentarios a estos manuales

Sin comentarios