New live CFML test console for ColdFusion and Railo

ColdFusion , Railo Add comments

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.

www.cflive.net

You can test code against both ColdFusion 9 and Railo simultaniously.
You can s
electivenable 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.

13 responses to “New live CFML test console for ColdFusion and Railo”

  1. John Skrotzki Says:
    This is awesome. Was waiting for something like this to appear. Looking forward to the coming features! Thank-you soooo much!!
  2. David McGuigan Says:
    This is fantastic Russ. Thank you.
  3. Jason Brookins Says:
    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
  4. Russ Michaels Says:
    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 :-)
  5. Russ Michaels Says:
    Jason, can you give me the exact code used, I have tested cfsavecontent without issue.
  6. Peter Tilbrook Says:
    Brilliant! Should come in handy!
  7. matt Says:
    <cfset temp = 1>
    <cfdump var="#temp#">
    results in "File not found: /railo/7671562D-1819-4BAF-94B2C295A19C1166.cfm"
  8. Russ Michaels Says:
    Matt, must be some random session/cookie type issue affecting you as I am not able to re-produce, will investigate more tomorrow.
  9. John Skrotzki Says:
    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
  10. Russ Michaels Says:
    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.
  11. Russ Says:
    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.
  12. Duncan Cumming Says:
    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.
  13. Russ Michaels Says:
    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"

Leave a Reply

Leave this field empty

Powered by Mango Blog. Design and Icons by N.Design Studio