Solved

CFBuilder debugger with code not under the webroot

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 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