Solved

CFBuilder debugger with code not under the webroot

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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 …
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

630 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