cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug the UDF

Former Member
0 Kudos

How to debug the UDF

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

stefan_grube
Active Contributor
0 Kudos

watch my blog:

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