Solved

CFBuilder debugger with code not under the webroot

Posted on 2011-02-23
4
745 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reverse Proxy Server 6 82
JKS to store upstart data 2 96
Test if a nested structure variable exisits : Coldfusion 8 10 39
Soundcloud.com 4 21
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 …
This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now