O'Reilly logo

Railo 3 Beginner’s Guide by Mark Drew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - setting the debug template

Let's create a file to see what debug output we can get from Railo Server. We are going to add a query and include another file.

  1. Under <Railo Server Install>/webroot, let's create a file called example_debug.cfm.
  2. Using the datasource we created earlier, we are going to create a template so that we can display debugging. Let's first create a template that we are going to include in <Railo Install Directory>/webroot/ called testinclude.cfm, and put the following code in it:
    <cfoutput>#Now()#</cfoutput>
    
  3. Now let's create a template that we shall debug; let's call it sampledebug.cfm and put it in the webroot too.
  4. In this template, let's perform some actions, so that we can see some interesting output. Let's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required