Skip to Content
author's profile photo Former Member
Former Member

How to debug the UDF

How to debug the UDF

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 06:38 AM

    In the UDF you can write the below code, when you executed it display

    the values.

    MappingTrace mt = container.getTrace();

    mt.addInfo(<trace_var_name>);

    For testing the data in unit testing we can goto the test tab and do

    the test, here in the

    down part besides the execution button Trace level is there, here we

    can select the required

    option(Warning, Info, Debug,all, no trace)

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 09:28 AM

    Hi,

    If you know java better to copy the code in simple java program and check the out put. If its large amount of code its good.

    Thanks,

    RamuV

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi,

      In order to debug in User-defined functions, use

      MappingTrace mt = container.getTrace(); as a statement in the UDF. And if you want to get values of the particular variable use

      mt.addInfo(variable_name);

      Thanks,

      Vijaya.

  • Posted on Jun 18, 2008 at 07:25 AM

    watch my blog:

    /people/stefan.grube/blog/2005/12/30/test-user-defined-functions-for-the-xi-graphical-mapping-tool-in-developer-studio

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.