Debugging external functions in IBM APL2/windows 
Author Message
 Debugging external functions in IBM APL2/windows

FYI,
I'm using Microsoft Visual C++ to develop some C code to run as an external
function under the IBM APL2 context in Windows.
Successful debugging can be acheived as follows:
(1) In MSVC project settings, set the "executable for debug session" to
"\ibmapl2w\bin\apl2win.exe". Also set "Program arguments" to "-sm off". You
may also need to set the "working directory" to "\ibmapl2w\bin".
(2) Start debugging (key F5), and the interpreter/command window comes up
(but maybe with no APL character support).
(3) Establish the external function linkage, with quadNA. (see return value
of 1)
(4) Place breakpoints in C code.
(5) Call the external function; MSVC encounters break points at which time
you can examine variables, step, etc.

I got around the lack of APL character support in the command window, by
first specifying the latent expression (quadLX) to extablish the external
function linkage, and perhaps invoke the function as well.

This answers my own question from an earlier (expired) posting.
-Aj



Mon, 20 Sep 2004 02:35:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Fw: Re: linking to an external routine in ibm apl2/win -- figured

2. linking to an external routine in ibm apl2/win -- figured it

3. linking to an external routine in ibm apl2/win

4. APL2 external function CTN

5. Cut and paste in IBM APL2 for Windows

6. Debugging a Rexx External Function under TSO

7. Installing IBM APL2 For Windows

8. IBM Order Desk: No APL2 for Windows

9. Debugging a Rexx External Function under TSO

10. IBM APL2 Workstation (AP145)

11. IBM APL2 Prices

12. apl*plus to IBM/apl2 conversion problem

 

 
Powered by phpBB® Forum Software