Problems Debugging CF8 with Eclipse Debugger

31 views
Skip to first unread message

Doctor Mo

unread,
Aug 15, 2007, 9:10:34 PM8/15/07
to CFEclipse Users
I'm using Eclipse with CFE and Adobe's Eclipse Plugins.

My web server configuration is CF8 Enterprise (fully-licensed) on Win
2003/IIS. I'm running two web sites on that server:
acelinkdev.evansville.edu and acelinktest.evansville.edu. Each site
has its own IP address. I'm not using host headers for either of
these sites.

CF8 is installed as a single server instance. I have not yet re-
installed CF to run in several instances. I'll get around to that
after classes begin this fall. Therefore, one instance of CF8 is
serving these two web sites.

My "/" mapping, in the CF admin area points to the web site root for
acelinkdev.evansville.edu. The acelinktest.evansville.edu web site
uses CF8's per-application mappings where "/" is mapped to the web
site root of acelinktest.evansville.edu.

acelinkdev.evansville.edu is about as plain as can be, regarding IIS
settings. acelinktest.evansville.edu, however, uses IIS to enforce a
SSL connection. In IIS, I set a custom 403.4 script that will
redirect the browser to the https location of the requested URL. This
works as expected.

In Eclipse, I created a few projects in my local workspace. I then
point to the web server by adding a remote folder to the project.
This way, my project is stored locally, however, it "uses" the remote
web server folders.

I created two RDS connections and was able to view the datasources for
each connection (although they point to the same databases),
therefore, I know the RDS connections are working. I can also
successfully test the connection and debugger for both web sites.

Line-level debugging has been enabled on the CF admin pages.

I am able to successfully debug acelinkdev.evansville.edu, using
Eclipse. It breaks on all breakpoints and I can view all variables.

I then created a debug profile for acelinktest.evansville.edu. The
settings are exactly the same as acelinkdev.evansville.edu, except for
the path information.

I am able to start a debugging session, within Eclipse, and I can
successfully run a page, in the browser, with *no* breakpoints.

However, as soon as I add a breakpoint, Eclipse displays a view that
says, "Source not found.". There is also a button with "Edit Source
Lookup Path..." on it. When I click the button, a window appears for
me to select the location of the source files. I then browser to the
path where the page resides and select it.

At this point, the process repeats itself and waits for me select the
source path.

I have checked the paths many times and I have deleted and re-created
the debugging profiles and RDS settings. However, I still cannot
debug the acelinktest.evansville.edu web site.

I have restarted the CF application service, then tried to debug the
acelinktest.evansville.edu site first, thinking that the problem was
caused by CF "caching" the first debugging connection settings. Still
no worky.

So, my thoughts are that the following could be preventing the
debugging from working correctly:
1. The custom IIS script that redirects to https.

2. The root "/" mapping points to the acelinkdev.evansville.edu site
root rather than acelinktest.evansville.edu.

3. It's something to do with running a single instance of CF and
trying to debug multiple sites just doesn't work.

However:
1. The breakpoints are in the index.cfm page and not in the IIS
redirect script. I figured CF would only try to debug the actual page
where the breakpoints occured.

2. In the Application.cfc of acelinktest.evansville.edu, I am using
per-application mappings. I figured CF would respect those while
debugging.

3. My next step would be to try this after I install distinct CF8
instances for each web site.

Sorry this was so long, but I tried to be as detailed as possible with
this issue. If anyone has any suggestions, I will surely welcome
them.

M!ke

Doctor Mo

unread,
Aug 20, 2007, 3:03:24 PM8/20/07
to CFEclipse Users
I installed the lastest version of Adobe's CF Eclipse plug-in and my
problem has been solved. I can now debug multiple web sites on the
save CF instance.

M!ke

Doctor Mo

unread,
Aug 20, 2007, 3:05:20 PM8/20/07
to CFEclipse Users
That last sentence should have read, "...the same CF instance." Damn
these fat fingers.
Reply all
Reply to author
Forward
0 new messages