Solved

CFBuilder debugger with code not under the webroot

Posted on 2011-02-23
4
754 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
What You Need to Know when Searching for a Webhost Provider
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Suggested Courses

752 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