Lucy Jih
12th March 2003, 05:13
Hi,

I would like to view variable field¡¦s value in program scrip when start session, they are processed in ¡¥before.program:¡¦, it could not suspend waiting for me to look at the script when I submit session with debug mode compiling. do you know why ?

Thank you.


Lucy

OmeLuuk
12th March 2003, 10:06
You compiled using the "Debug" button or using the -l flag.
You run the session and it starts with a screen with two boxes (upper one empty and text (source) in the lower) and a command line.

On the command line: first press ? and study the help information.
If you want to know the value of a variable: type the variable name.
what.is.value
in the top box you may read:
what.is.value = 10
then start tracing the variable (get notified when its value changed)
t what.is.value
you may read some message that breakpoint added
you can run the program until the value changes (press c, or with scrolling code: press C) or you can step the source line by line with s (step into) or S (step over).

This should help you on the road.

zacharyg
12th March 2003, 10:15
Hello Lucy,

It appears to be a VRC problem. Ensure that the session which you compiled can be executed from the company in which you invoke the session.

Invoke ttstpsessinfo, enter the session code and tab to the next field or depress the CR-key. If the input is rejected then your problem is that you must invoke the session from a company whose package combination contains the VRC in which the session exists.

otherwise print the session info and you can determine in which path the object is found.

Best Regards

OmeLuuk
12th March 2003, 10:21
Ok, if the session does not come in debug mode:
1) your bshell may have the same session not in debug and uses that one instead: exit session and recompile again in debug, then try again.
2) VRC and derivation structure may be the issue indeed, see post from zacharyg
3) if 1 does not work and 2 is not the issue, then try to logof Baan and login again (re-initialize your bshell memory on the server)
4) if on NT (not in your case) an old version of the object may reside in shared memory (on Unix this is refreshed if file on disk is refreshed, but on NT this does not work). Re-initialize shared memory in this case (or remove object manually or reboot server).

Lucy Jih
12th March 2003, 10:58
Hi,

Start session after pressing button ¡¥Debug¡¦ to compile the program script, it show -
Debugger source file ptfgldxxxxx
b 249
b 741
¡K
¡K
0248 before.program:
0249 year.f = tfgld004.year
¡K
0739 function start.print.process()
0740 {
0741 yymm.f = str$(year.f)&str$(prod.f)
¡K
then press c continue go to session¡¦s form in order to enter condition criteria, it do not suspend on program line 0249 when I press form's default buttom ¡¥Continue¡¦, but stop on line 741 waiting for me to do next step. I would like to consult you if could not break on program section ¡¥before.program:¡¦ ?


Thanks.

Lucy

OmeLuuk
12th March 2003, 11:19
Start session, press c (continue in debug)
fill in required form fields
Start a ttstpshell process (in BW from Option Dialog - Start shell; ba: F6 - start process) type "ps" and note the PID of the session that runs in debug, then type "debug PID".
Go back to the session and press Continue.
you will jump to the debugger. Now step through the source.

Lucy Jih
14th March 2003, 11:43
Hi OmeLuuk,

thanks for your reply.


Lucy