Problem with Coldfusion 8 line debugger
Tags: Coldfusion
I have started to use this on one of my clients, and instantly found a condition where the line debugger will not fire. I can see why the break point doesn't fire, as it says the reason why. But the question why does it actually say this.
Lets take the following bit of code, a calling page has a query that always returns records and then includes the following page for some output.
<cfoutput query="getRecords">
... Do some outputting
</cfquery>
</cfif>
The logic inside the cfoutput above needed to be tweaked to provide some extra logic, so when I placed a break point on the cfoutput CFEclipse automatically says that this may not be reachable. That is a standard way of letting someone know that due to the cfif wrapping it that this is very likely to be the case.
So when trying to get the break point to fire, it will never fire and yet still executes the code to completion inside the cfoutput. Ok, seems fair to some degree. So I placed another break point on the cfif and have it break there. Which it did, great all is good so far.
Then I ran the program to halt at the next break point which should have been the cfoutput. No matter what you do the ColdFusion 8 debugger plugin refuses to break on the cfoutput.
Just a word of warning to anyone who uses, or at least tries to break in the same scenario and ends up tearing their hair trying to figure out why this is happening.
There are no comments for this entry.



TweetBacks