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 calledexample_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/
calledtestinclude.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 thewebroot
too.4. In this template, let's perform some actions, so that we can see some interesting output. Let's put the following code there:
<cfquery name="getUsers" datasource="railobook"> SELECT * FROM Users </cfquery> <cfoutput query="getUsers"> #Username# <br> </cfoutput> <cfinclude...