Last week while answering some coding questions on a discussion list I needed to post some example code, which meant if I wanted to test the code first then I needed access to a cf server. As I tend to do most of my list replies etc on my mobile device, I do not have a local CF installation to test with.
With PC sales dropping and mobile devices sales far exceeding PC sales these days, I would imagine most other people are doing most of their community activity on their mobile device as well.
I then considered how often I have seen other devs posting code snippets and saying "this is not tested code as I do not have access to a cf/Railo server right now", or the question is about Railo and you only have CF or vice versa, so it must be a fairly common scenario.
This made me think to myself "wouldn't it be handy if there was a web page I could go to where I could quickly just type some code into a form, submit it and the code would be executed and tell me if there were any errors and give me some debug output, surely someone has written such a tool ?
So I Googled it and was surprised that such a tool did not exist, that I could find, at least not for CF.
Well it seemed like such a simple app to write and it has been a long time since I did any coding as I simply do not get the time these days, so I thought I would do it myself, and here it is.
You can test code against both ColdFusion 9 and Railo simultaniously.
You can selectivenable debug output
You can use virtually all CFML tags and functions, excluding file read/write and Java for obvious seurity reasons.
Your code is saved into a session and form automatically re-populated so you don;t have to keep re-typing code.
Please give it a try and leave me some feedback, feel free to try and hack it and find any vulnerabilities or bugs, as long as you let me know about them.
May 27, 2013 at 11:59 PM This is awesome. Was waiting for something like this to appear. Looking forward to the coming features! Thank-you soooo much!!
May 28, 2013 at 2:01 AM This is fantastic Russ. Thank you.
May 28, 2013 at 2:10 AM I just saw the following error when I tried to output a string with savecontent (Railo):
File not found: /railo/056FBA5B-C9D5-49CD-A8EAD6A1F1B91291.cfm
May 28, 2013 at 2:11 AM FYI, I have now tested it on most popular mobile devices, IPad, Iphone, Android, Samsung Galaxy Note, Samsung Galaxy S4, Amazon Kindle, and it works perfectly :-)
May 28, 2013 at 2:13 AM Jason, can you give me the exact code used, I have tested cfsavecontent without issue.
May 28, 2013 at 2:16 AM Brilliant! Should come in handy!
May 28, 2013 at 2:44 AM <cfset temp = 1>
<cfdump var="#temp#">
results in "File not found: /railo/7671562D-1819-4BAF-94B2C295A19C1166.cfm"
May 28, 2013 at 2:49 AM Matt, must be some random session/cookie type issue affecting you as I am not able to re-produce, will investigate more tomorrow.
May 28, 2013 at 3:15 AM I can verify I am getting the same issue on Railo and CF:
<cfset temp = 1>
<cfdump var="#temp#">
R:File not found: /railo/12A4ABA6-C107-4399-998AC21569711EA8.cfm
CF:File not found: /coldfusion/12A4ABA6-C107-4399-998AC21569711EA8.cfm
MY COOKIES:
CFID=3b236686-51f1-49cf-8e21-4bdaa9653492; expires=Wed, 27 May 2043 06:46:36 GMT; path=/; domain=www.cflive.net
CFTOKEN=0; expires=Wed, 27 May 2043 06:46:36 GMT; path=/; domain=www.cflive.net
JSESSIONID=q7y0w3fshnk61gc7tnd1tn8uy; path=/; domain=www.cflive.net
May 28, 2013 at 3:26 AM ok, fyi you can't use cfdump anyway as it uses java, you should get a security error, which is what I get. Will try on a few different machines to get your error.
Jun 2, 2013 at 1:48 AM BTW guys I did fix the file not found error, it was caused by you accessing the site with www cananonical domain but the site is set to run without www.
I added a url rewrite rule to solve it.
Jul 3, 2013 at 9:32 AM I think this is a great facility - why only CF9 though? Also it would be useful if on the site's About page you say which versions of CF and Railo you're running.
Jul 3, 2013 at 1:41 PM Duncan, i'm not rich i'm afraid, so I do not have a few grand spare to upgrade to CF10, so unless someone donates a copy or Adobe decide to help, then it will stay at CF9.
You can see the exact versions installed on the debug output, the version of Railo is also shown right on the top of the page where it says "powered by Railo 4.1.0.004"