Previewing a File in 1-2-3 Steps

3 things are necessary here:
1. It is necessary that the file you want to preview is in webroot.
2. It is necessary that the file is a part of a project in CFBuilder.
3. It is necessary that a server is associated with this project.
Considering these conditions the three steps should be as simple as:
1. Create/Import a Project in CFBuilder and create a cfm/cfc in it.
2. Associate that server with this Project, whose webroot will contain your file to be previewed**
3. Move to the Firefox/IE tab from the Source tab to internally preview this file. Else right-click on the editor and say Run As -> ColdFusion Application to open it in external browser.
**Checkpoint: A checkpoint for preview to be successful is that when you associate a server with a project the ‘Sample URL’ field below it shows the url for the project correctly.
The same checkpoint also holds good when you want to debug. You will see me re-iterating this in my post on Debugging.
Note: Though the F12 like shortcut key is not available to preview a file, there is a small button(green arrow) at the top in the tool bar. Clicking this button will run the currently opened cfm.

4 Responses to Previewing a File in 1-2-3 Steps

  1. Mike Henke says:

    Thanks for doing these.

  2. Hugh Rainey says:

    I thought I would send this through. I’m not sure if this would be the place to report issues.
    I was following the procedure in step 3 and when I when the browser came up the url was as follows:
    the url should have been:
    I am running windows 7 rc. Let me know if I there is any other details that you need.

  3. Bhakti says:

    You can start a technical discussion at our public forum (URL: Looks like you haven’t set the docroot appropriately. What do you see in the Sample URL field? Is this is a local or remote server?

  4. KRISTY says:

    I kept nodding my head the entire time I was reading this, “Yes, I fully agree!” I’ve been blogging for three numerous now, but only lately got considerable about. It is improved my lifestyle in so quite a few methods, I want to kick myself for not getting much more severe a fantastic earlier! Also, I cannot wait to study your blog nearly each and every for more an additional year!