How do I do a runtime debug of a Coldfusion component file?

My application has a Coldfusion component(cfc), CFM file and a lot of Flex source files.
I tried using  <cftry>,  <cfcatch>, <cfdump> to find the errors in the cfc, but still cannot trace the issue.
The code in CFC file is somewhat like
<cfcomponent>
    <cffunction name="edit" access="remote" returntype="any">
        <cfargument name="form_data" type="struct">
        <cftry>
            <cftransaction>
                <!--- Update Record --->
                <cfquery datasource="#Application.ds#">
                    some SQL here
                </cfquery>
                 <!--- Remove all previous outcomes --->
                <cfquery datasource="#Application.ds#">
                    some SQL here
                </cfquery>
                <!--- Log Update --->
                <cfquery datasource="#Application.ds#">
                    some SQL here
                </cfquery>
                <!--- Get Last Logged Record --->
                <cfquery datasource="#Application.ds#" name="getLogLastRecord">
                    some SQL here
                </cfquery>
                <cfloop index="arr_index" from="1" to="#ArrayLen(form_data.num)#">
                    <!--- Update Record --->
                    <cfquery datasource="#Application.ds#" >
                        some SQL here
                    </cfquery>
                    <!--- Log Update --->
                    <cfquery datasource="#Application.ds#" >
                        some SQL here
                    </cfquery>
                </cfloop>
    </cftransaction>
            <cfset result['statMsg']= "The record was saved successfully!">
            <cfset result['status']= true>
            <cfcatch><!--- Catch error --->
                <cfsavecontent variable="contentSaver">
                     <cfdump var="#form_data#">
                     <cfdump var="#cfcatch#">
                </cfsavecontent>
                <cffile action="write" file="#ExpandPath('.')#\debug.html" output="#contentSaver#">
                <cfset result['statMsg'] = cfcatch.Message>
                <cfset result['status']= false>
            </cfcatch>
        </cftry>
        <cfreturn result>
    </cffunction>
</cfcomponent>
Issue: 1 My understanding is if the transaction is successful I should get the message "The record was saved successfully!" which I don't get, though the transaction is successful as the data is saved in the MySQL backend.
Even if the transaction failed, I should get a message due to the catch block.
What could be the reason I am not getting the message? The users of the application need to get this so that they know that the changes they did are saved.
Issue 2: For another transaction, I get the below message at run time.
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@domain.com' at line 3"
The transaction goes through fine and changes are saved to the back end database which means nothing is wrong in my SQL syntax.
I don't see anything wrong on line 3 of the cfc file, nor the third line of the SQL statement has anything missing. Why am I getting that message?
Why am I not getting a message when I should for Issue 1 when the transaction is successful and why am I getting a strange error message for Issue 2 though the transaction is successful?
Can I do a run time debugging of the CFC using Coldfusion Builder as I can for Flex source files using Flexbuilder?
Any advice would be welcome.

hemant_k wrote:
Yes, you can use debugger in ColdFusion Builder. Check http://help.adobe.com/en_US/ColdFusionBuilder/Using/WS0ef8c004658c1089 -31c11ef1121cdfd6aa0-7fff.html for some details.
There are some interesting link around builder available on CF builder team blog - blogs.adobe.com/cfbuilder. [image links are not working becuase of admin issues]
Thanks, that link is helpful.

Similar Messages

  • How to verify existence/absence of debug information in a jar file

    Given a jar, how can I tell if it contains debug information or not? Is there a tool for this? (e.g, like the 'file' utility on linux, which outputs whether an ELF executable is stripped or not)
    Amit

    I'm not saying it's pretty... but there's a horrible quick & dirty way of checking for debug info
    Typically the debugging information is stored is special attributes in the class files, like "LineNumberTable", "LocalVariableTable" etc.
    Depending on which type of debugging setting was used to compile the source code, these will be present in the binary class file.
    So, you might unjar the contents of the jar and run eg.
    find "LineNumberTable" *.class
    to find all classes with line number information.
    I tried it on a sample class and it worked for me here.
    Hey, I know it's a hack, but not everyone has time to write a full disassembler !
    regards,
    Owen

  • Common Language Runtime Debugging Services Application has generated an exception that could not be handled

    Our custom got an error when startup our .NET windows form application.
    XXXXX.exe - Common Language Runtime Debugging Services
    Application has generated an exception that could not be handled
    Process id=0x654(1620), Thread id = 0x5b0 (1456)
    Click OK to terminate the application
    Click CANCEL to debug the application
    If they click on "CANCEL" then following error message appears:
    Registered JIT debugger is not available. An attempt to launch a JIT
    debugger with the following command resulted in an error code of 0x2(2)
    Please check the computer settings
    cordbg.exe !a0x654
    Click on Retry to have the process wait while attaching a debugger
    manually.
    Click on Cancel to abort the JIT debug request
    We can not duplicate this problem in our development environment and test environment. So, we ask them to uninstall application, .NET Framework 1.1 and resinstall .NET Framework 1.1 and application. They still got same error. We further ask them to install .NET Framework SDK 1.1. They got some detail error message.
    [thread 0x840] Thread created.
    Unable to determine existence of prolog, if any
    [thread 0x188] Thread created.
    [thread 0xba8] Thread created.
    [thread 0x840] Unhandled exception generated: <0x00c0344c> <System.IO.FileNotFoundException>
     _fileName=<null>
     _fusionLog=<null>
     _className=<null>
     _exceptionMethod=<null>
     _exceptionMethodString=<null>
     _message=<0x00c04cc8> "The specified module could not be found."
     _innserException=<null>
     _helpURL=<null>
     _stackTrace=<0x00c04d2c> array with dims=[156]
     _stackTraceString=<null>
     _remoteStackTraceString=<null>
     _remoteStackIndex=0x00000000
     _HResult=0x8007007e
     _source=<null>
     _xptrs=0x00000000
     _xcode=0xe0434fd
    Thread 0x840 R 0x00000000: <unknown>
    <cordbg>
    Looks like the problem is casued by missing component. But we don't know which component missing and how to find it. Is there anybody can give us some clue what we need to check next and what tool we can use to detect missing component.
    Thanks!!!!

    I tried Dependency Walker in our development environment, looks like it's useless for .NE T Window Form application, the result I got is like bellow,
    XXXXX.EXE
        MSCOREE.DLL
            KERNEL32.DLL
            USER32.DLL
            ADVAPI32.DLL
            SHLWAPI.DLL
            URLMON.DLL
            VERSION.DLL
    I know we used some other DLL like Mirosoft Office Object Library, but MSCOREE.DLL (.NET Runtime Engine) covered them. Any other idea? Thanks!!!!

  • We are interested to know how/where to check query runtimes for any Query in SAP BW?

    We are interested to know how/where to check query runtimes for any Query in SAP BW?
    Is there any table or program to get the query run time details per query for a particular day.

    Hello Sravan,
    Bex statics tables would be 'RSDDSTATHEADER','RSDDSTATINFO' & 'RSDDSTATEVDATA'. all these can found in one view 'RSDDSTAT_OLAP'.
    above can give historical statistic.
    For current Query statics : T-code RSRT, and select debug mode select display statistics and then execute.
    Once you get the output press F3(one step back), there you can see statics of the query for that particular execution.
    Thanks,
    Mallikarjuna

  • Common Language Runtime Debugging Services

    I have been getting Fatal Execution Engine Errors.
    onfserv.exe - Common Language Runtime Debugging Services
    McafeeDataBackup.exe - Common Language Runtime Debugging Services
    MSI189.temp - Common Language Runtime Debugging Services
    MSIEF.temp - Common Language Runtime Debugging Services
    What is causing this and how can I fix it.

    It might be a virus, try scanning your machine with some other antivirus software than you have now installed. If that's not the problem check the chipset drivers and do all windows updates. Cheers and post back if none worked!
    Message was edited by: daniel.micu

  • How can I get a indesign debug version?

    How can I get a indesign debug version? is it free?
    Anyone could give me a download link?
    thanks

    I know this is available to solution providers, if you are registered as such at partners.adobe.com. I don't know what level of membership is required, but that is one place the debug version is available from.
    Thanks,
    Max
    Max Dunn
    Silicon Publishing
    www.siliconpublishing.com

  • How to see refcursor data while debugging

    Dear Guru,
    I have below procedure.
    create or replace
    PROCEDURE Main_Proc
    RS_1 OUT TMRS_UTIL_PKG.RefCsr
    AS
    L_Excecution_Status NUMBER;
    L_Sql_Code VARCHAR2(1000);
    L_Sql_Error VARCHAR2(1000);
    a NUMBER;
    BEGIN
    -- Initialize Execution Status.
    G_Excecution_Status := 0;
    G_Sql_Code := 'C';
    G_Sql_Error := 'E';
    DBMS_OUTPUT.PUT_LINE('Entered in Main_Proc.. ');
    -- Return Resultset
    OPEN RS_1 FOR
    SELECT 'This output is from Main_Proc' AS Main_Proc_OP
    FROM DUAL;
    DBMS_OUTPUT.PUT_LINE('Left Main_Proc.. ');
    G_Excecution_Status := L_Excecution_Status;
    G_Sql_Code := L_Sql_Code;
    G_Sql_Error := L_Sql_Error;
    EXCEPTION WHEN OTHERS THEN
    G_Excecution_Status := 1;
    G_Sql_Code := SQLCODE;
    G_Sql_Error := 'In Main_Proc SP => '||SQLERRM;
    END Main_Proc;
    I just want to see output contain in RS1.
    I am using SQL Developer 3.0
    Could anybody help me.
    Regards
    Sanjeev

    When running a procedure with output cursor variable(s) the result is in structured output window (modulo bugs exposed in EA1).
    You are asking how to view cursor data during debuging, however, and support of complex datatypes, cursor including, is limited. On the other hand, I can imagine that during debuging session you would step inside the calling procedure, where you would extract cursor data row-by-row into some other data structures. The idea I fail to understand is why somebody is not satisfied watching those data structures themselves. As Java developer, I have never peeked into the content of ResultSet (which is essentially client-side cursor in Java)!

  • How can I fix the Runtime Error R6034 so that I can correctly install iTunes on my PC ? I get a notice that states ' An application has made an attempt to load the C runtime library incorrectly - Please contact the application's support team for more info

    How can I fix the Runtime Error R6034 so that I can correctly install iTunes on my PC ? I get a notice that states ' An application has made an attempt to load the C runtime library incorrectly - Please contact the application's support team for more info

    Hey Debbiered1,
    Follow the steps in this link to resolve the issue:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    When you uninstall, the items you uninstall and the order in which you do so are particularly important:
    Use the Control Panel to uninstall iTunes and related software components in the following order and then restart your computer:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Important: Uninstalling these components in a different order, or only uninstalling some of these components may have unintended affects.
    Let us know if following that article and uninstalling those components in that order helped the situation.
    Welcome to Apple Support Communities!
    Take care,
    Delgadoh

  • How can I install the Flash Debug Player in Internet Explorer 10?

    I just downloaded the Flash Debug Player 11.4.402.287 from http://download.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_ax_debug.exe - however, trying to install it merely shows a message box saying
    The installation encountered errors: Your Microsoft Internet Explorer browser includes the latest version of the Adobe Flash Player built-in. Windows Update will inform you when new versions of the Flash Player are available.
    I'm using Internet Explorer 10.0.9200.16384 on Windows 8. A bit of Google research suggested that IE10 has a Flash player built-in (similiar to what Google Chrome has) so I looked for a way to disable the player. It seems that this is indeed possible by clicking the Cogwheel icon in the IE10 toolbar and then selecting 'Manage Add-ons'. The dialog which shows up shows a 'Shockwave Flash Object' entry. However, even with the built-in Flash player disabled, the Flash Debug Player installer keeps giving the same message.
    Does anybody knwo how I can install the Flash Debug Player in IE10?

    I do not know, but check if there is anything useful in http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/flashplayer/pdfs/flas h_player_windows8_admin_guide.pdf

  • How to display BITMAP at runtime

    Hey all....
    I am new to Photoshop SDK CS2 plugin programming. Can anyone help me to find out any code or any information to display bitmap image on plugin dialog using photoshop API and not the Windows API or MFC. I am just using a simple Dialog extending PIDialog Class and placed a picture control at design time using resource editor in windows (Visual Studio).
    When I pass the resourceID of an Image in design time to picture control it displays the image and plugin is also working good but don't know how to pass it at runtime.
    thanks

    Hi,
    Thanks for your reply. My Plugin is an Automation type plugin and is visible in File/Automate menu. I am just opening a 'File Browse Dialog Box' through 'Open File' Button on Plugin Dialog to select a image file (*.bmp) then I want to display that image in thumbnail in Picture Control box on plugin Dialog (just like the File/Automate/Picture Package... plugin already included in Photoshop cs2).
    I have also downloaded the code given by you. again thanks for that. I am trying to understand the code. But I think it is too much for just displaying an image in picture control.
    Thanks

  • How to Network Interface for Remote Debugging in Adobe Flash Professional CS6?

    How to Network Interface for Remote Debugging in Adobe Flash Professional CS6?

    Check out : http://helpx.adobe.com/flash/using/whats-new-cs6.html
    In that click on "Choose network interface for remote debugging for AIR" section.
    Hope it helps.

  • How do I fix a runtime error?

    How do I fix a runtime error?

    See this tech note for rebuilding the media database and general troubleshooting tips.
    http://helpx.adobe.com/photoshop-elements/kb/microsoft-c-runtime-error-launcing.html

  • Common Language runtime debugging services - Application exception

    I have a add-on application working on 2005A patch 08. One of our client's site I have a strange problem. The addon works on the test server bur on the production server, after install, it gives me the following error:
    Common Language runtime debugging services.
    Application has generated an exception that could not be handled.Process Id 0x98(2328), Thread id 0x3a4(932)
    Can somebody help me?
    I can use test server as client and point the company to the production server and it works fine. What could be missing on production server client? I am using the same ard and exe files for the addon on test server as well as production server.

    Hi Ibai Peña,
    My application goes this way:
    1. Connect to UI api.
    2. Set culture info.
    3. connect to DI api.
    I have placed messageboxes everywhere to b4 and after to see at what point it is failing. but I don't reach there at all.  I get error b4 my first messagebox.
    On test server, the system was on 2004 and now upgraded to 2005. On production server, it is 2005.
    But my application runs on other 2005 clean install machines. We tried uninstalling SAP B1 completely and loading it again but everytime I get the same error.
    Regards.
    Prakash

  • How to use runtime.exe to activate the native file coping commands

    How to use runtime.exe to activate the native file coping commands.(It might include using process(), and such.. but how?

    Why would you want to do this? It's harder than copying the file in Java (by reading the file and writing it to a new file) and you'll need to write new code each time you want to port your code to a new OS.

  • How to Close Adobe Pdf Runtime

    Hi,
    I am using the Adobe PDF Runtime to Print the *10g Report* Directly to Printer.
    It's Is Working Fine. But After giving Print Option , The Adobe Runtime Still Running. Manually we need to Close that runtime window,
    then only the control come back to Forms.
    Can Any one tel me how to Close Adobe PDF Runtime window Automatically, When i give print report Directly to Printer.
    Regards,
    Gany
    Edited by: Gany - Ford on Sep 28, 2010 2:03 PM

    The easiest way is to set up syncing between your iPad and laptop with iTunes. You can read how on the Apple website in the iPad section, or you can answer a question on their forums: www.apple.com.
    It's a really good idea to set up iTunes syncing so you can back up all the files on your iPad!
    On a one-by-one basis you could email a PDF, or use Dropbox, but synching is much better.
    Good luck!

Maybe you are looking for