Title:
Bug 80309:When debugging code as in tags and functions that have close tags, these are sometimes skipped over and is annoying
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): Andrew Scott / Andrew Scott (Andrew Scott)
Created: 10/13/2009
Components: General Server
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Problem:
When debugging code as in tags and functions that have close tags, these are sometimes skipped over and is annoying. For example<cfquery>select * from someTable</cfquery><cfreturn />The cfquery is not breaked on, and neither is the cfreturn. Instead the code returns back to the calling function. This must be fixed due to the fact we need it to break on these for proper debugging purposes.
Method:
* <cfquery name=""........>
Select * from sometable
where some condition
</cfquery>
<cfreturn>
</cfcomponent>
The asterix on the first open tag of cfquery represents a breakpoint, when this is fired and I try to step through this if there is no other ColdFusion code to parse then it will exit this function and WILL NOT break on the closing cfquery, nor will it break on the cfreturn either.
The cfreturn is problem in itself because it can never break on this line, so one has to always write just prior to this
<cfset dummy = local.result />
<cfreturn local.result />
So that we can break and check the value in the variables tab of eclipse to inspect the data.
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3040277
External Customer Info:
External Company:
External Customer Name: Andrew Scott
External Customer Email: 3DEA395D4926D3D0992015B9
External Test Config: 10/13/2009
Attachments:
Comments: