Solved

CFBuilder debugger with code not under the webroot

Posted on 2011-02-23
4
750 Views
Last Modified: 2013-12-24
I have a Coldfusion project that uses coldbox.  Under the webroot, the only code I have is Application.cfc, index.cfm and coldboxproxy.cfc.  All the other code is in another location, which from what I understand is a good thing from a security standpoint since not much code is directly exposed.  The application itself works fine.  This is a Flex frontend calling Coldfusion.

I have two projects set up in CFBuilder, one for what is under the webroot (those 3 files) and one for all the other code.  I haved debug mappings under Windows->Preferences and under the Edit Server for the RDS server (it's a remote server).  The mappings are set up for both projects, one for each.

Whenever I try debugging, I get a "Source not found" message.  I try editing the source lookup path, but that doesn't seem to make a difference.

My other project that has the code underneath the webroot works fine with the CFBuilder debugger.  When I used to have the new project (the one that does not work with the debugger) all underneath the web root, it did work with the debugger in finding the source code.

Any help appreciated.
0
Comment
Question by:ARL-ARO
  • 2
  • 2
4 Comments
 
LVL 29

Accepted Solution

by:
dgofman earned 500 total points
ID: 35134643
Can you execute your page on the browser?
If yes, so do next steps.

1) Find our deploy directory of Coldfusion where is SWF file located
Use this path in your Flex Builder Project. Right Click on project->Properties->ActionScript Build Path

Output folder: set to the full path to your deploy directory

It will always updates current SWF file to the latest one + added debugger infomration if filed compiled as Released.

2) Right Click on your Application main file and select Debug As...->Web Application.
 It will execute SWF file localy.

3) Now in your Eclipse find Debug button, click on the arrow and pick "Debug Configuration..."

4) Uncheck check box "Use default" and copy past URL from your browser, what you are using to lunchyour page.

That should bring your application in the debug mode
0
 

Author Comment

by:ARL-ARO
ID: 35167082
Unfortunately the Coldfusion portion cannot be run as a separate application since it is a proxy using Coldbox.

I'm not sure what changed, but now it seems to be finding my code without a problem, so I don't know what the solution is exactly.  I did restart Coldfusion a few times and completely deleted all the debug mappings and added them back in, but I don't know what exactly got it going again.
0
 

Author Closing Comment

by:ARL-ARO
ID: 35167096
I don't know exactly why it started working, but I deleted all the debug mappings, added them back in and restarted Coldfusion a few times and somewhere in messing around with it all it started working.
0
 
LVL 29

Expert Comment

by:dgofman
ID: 35167114
Are you running Coldfusion on JBOSS, WebLogic, JRun etc?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question