atifbold
4th June 2012, 16:27
I am very new to the baan and ERP-LN, I am trying to debug a error "Address not found" comes while transferring purchase order advice...! my problem is to know/find the piece of code where the error get generated, I know the code would be something like dal.set.errror.massage ("address not found ") ....

But as there nested dll & function calls .. I need to know some NICE TIPS for debugging to get the right piece of code..
Secondly what is the command to execute a function while debugging ..! e.g. i want know dal error buffer value in debugger, i.e. dal.peek.errror.massage()

Thanks in advance ..
/Syed

andreas.toepper
4th June 2012, 16:55
I'm using some ways to catch errors, which occur in unknown places.

First of all dal.set.error.message will use a message-code. Try finding the message-code in the message-session. You can print a report called "Print where used Messages and Questions" if you know the message-code. This will help in cases the message-code isn't commonly used.

You've already tried the second way: searching a trail in the nested sources... ;-)

My "last resort" is creating a trace of the program-flow. That's done using the "Debug-Bshell"-Session. You need to activate the program-flow trace on the second form.
If you select "more details" on the first mask, the function-calls will also list the used parameter-values. This may create a huge file, so you will need an editor like ultraedit to search the error-message.

Regards
Andreas

zardoz
4th June 2012, 17:30
In the debug window set:

t dal.error.file
t dal.error.line

and press continue.

This stops the debugger when a dal error comes, in dal.error.file there is the name of the dal and in the other the line on wich the dal error happens.