vineetu1
17th December 2004, 10:23
I have developed a few sessions using AFS.

Now while developing AFS sessions with more complex functionality it becomes very hard to deug to know why a particular thing is not working.

I understand that there is an interactive mode in AFS available. In this interactive mode one can actually see the execution of the session. Hence it become easy to look at the sequence in which the AFS is executing the session and its fields.

Could I know how to invoke this interactive mode functionality ??

Thanks
:)

fmorais
17th December 2004, 12:12
When I have some problem with AFS, the only debug mode I know is using an afs.log. Instructions on how to generate this exist in the AFS user manual.

However, if an interactive mode exists, it would be very usefull.

Fred

csecgn
17th December 2004, 14:16
The best interactive mode I know is to compile the controlled session (not the session with the AFS calls) in debug. So you can see every execution and check all vars. You only have to be carefull witc the c command in the debugger. If you press it once, the session will run and don't stop at the next var. Breakpoints work as expected, but the sequence of the sections is different from the Flow of a Standard program (it is not really different, but it seems so at the execution because all vars are filled first and after this check.input is executed).

Regards
csecgn

vineetu1
19th December 2004, 07:23
Dear Csecgn,

I think 90% of Baan users are using the AFS logic as they do not have the source code of standard baan sessions but would like to automate the transactions with some additional functionality.

If we do not have the source code then how to debug the original session ? Could you elaborate ?

:confused:

maverick4u
19th December 2004, 21:08
The only way to deubug Afs sessions is using AFSLOG=1 which gives
a log file afs.log which lets you know how afs is handled.

csecgn
21st December 2004, 21:27
Dear Vineet,

I'm sorry, but I realy didn't think very much about it. During the last years I've changed nearly every standard-sessions we are using... and created some new functionality from the scratch. So maybe I've lost a little the contact to the "normal world". I will keep it in mind for the future.

Regards
csecgn

Venkat
22nd December 2004, 06:59
Whne using AFS, baan uses the bshell6.1 -server option..Hence u will not get the session in interactive mode..AFS log is the best option for debugging...

Regards
Vekat