<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Debugging DEC C program started from MS Window application in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939874#M33028</link>
    <description>Jefferson,&lt;BR /&gt;&lt;BR /&gt;I do compile/link using /DEBUG qualifier only. the question is that I don't give $RUN/debug CProg.exe command, this CProg image is triggered by windows' VB program thru TCPIP. I can not $RUN/deb CProg.EXE from VMS as it needs so many records of data from VB screens.&lt;BR /&gt;&lt;BR /&gt;I will appreciate any further suggestions on this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
    <pubDate>Thu, 10 Nov 2005 17:01:21 GMT</pubDate>
    <dc:creator>Arch_Muthiah</dc:creator>
    <dc:date>2005-11-10T17:01:21Z</dc:date>
    <item>
      <title>Debugging DEC C program started from MS Window application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939872#M33026</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Env: OpenVMS 8.2/HP Alpha DS10 Server with DEC programs and MS Windows with VB.&lt;BR /&gt;&lt;BR /&gt;VB screens gets user input and creates datafile; sends the datafile as input to DEC C image thru TCPIP V5.4 and DEC C image starts run, and the results sent back to windows.&lt;BR /&gt;&lt;BR /&gt;Could you please help on how can I run the DEC C image in debug mode? to see step by step execution of C source?&lt;BR /&gt;&lt;BR /&gt;Note: I am going thru VMS debugger manual, but unbale to get good idea out of it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Thu, 10 Nov 2005 16:15:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939872#M33026</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2005-11-10T16:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging DEC C program started from MS Window application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939873#M33027</link>
      <description>Archunan,&lt;BR /&gt;&lt;BR /&gt;You need to compile and link the DEC C .EXE with the /DEBUG switch.&lt;BR /&gt;&lt;BR /&gt;When you run the .EXE then it will be obvious.&lt;BR /&gt;&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 10 Nov 2005 16:45:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939873#M33027</guid>
      <dc:creator>Jefferson Humber</dc:creator>
      <dc:date>2005-11-10T16:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging DEC C program started from MS Window application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939874#M33028</link>
      <description>Jefferson,&lt;BR /&gt;&lt;BR /&gt;I do compile/link using /DEBUG qualifier only. the question is that I don't give $RUN/debug CProg.exe command, this CProg image is triggered by windows' VB program thru TCPIP. I can not $RUN/deb CProg.EXE from VMS as it needs so many records of data from VB screens.&lt;BR /&gt;&lt;BR /&gt;I will appreciate any further suggestions on this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Thu, 10 Nov 2005 17:01:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939874#M33028</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2005-11-10T17:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging DEC C program started from MS Window application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939875#M33029</link>
      <description>Hello Archunan,&lt;BR /&gt;&lt;BR /&gt;How is your DEC C image actually initiated? Is the VB program using an Active X control to start a terminal emulator (e.g Reflection) or TCP/IP session which in turn starts the C image on OpenVMS? If so, the VB program probably contains the command to run the C image and it is this command which can be changed. But I'm not sure whether you would have interactive access to the C image.&lt;BR /&gt;&lt;BR /&gt;Is the datafile which is sent from the VB program actually stored on the OpenVMS system?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Ian&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Nov 2005 17:26:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939875#M33029</guid>
      <dc:creator>Ian McKerracher_1</dc:creator>
      <dc:date>2005-11-10T17:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging DEC C program started from MS Window application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939876#M33030</link>
      <description>Ian,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;How is your DEC C image actually &amp;gt;initiated? Is the VB program using an &amp;gt;Active X control to start a terminal &amp;gt;emulator (e.g Reflection) or TCP/IP &amp;gt;session which in turn starts the C image &amp;gt;on OpenVMS? &lt;BR /&gt;&lt;BR /&gt;The windows side GUI, looks like VB or VC++, this actually initiates TCPIP (socket) programming; sends datafile and along with startup information to DEC C programs. Once the input data entered into the GUI screen (not emulator) from MS windows, it inturn communicates with VMS and starts DEC C image. So we can not see anything visually in the OpenVMS side. Windows sends data records only one time; DEC C does processing in VMS side and returns the result back to windows. As windows waits for the result, if there is any delay in VMS side, windows will give timeout error.&lt;BR /&gt;&lt;BR /&gt;****Note:*****&lt;BR /&gt;My question is how to debug this DEC C program to see step by step processing?&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Thu, 10 Nov 2005 17:54:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939876#M33030</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2005-11-10T17:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging DEC C program started from MS Window application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939877#M33031</link>
      <description>Archunan,&lt;BR /&gt;&lt;BR /&gt;  It depends on what you have available and what you're used to.&lt;BR /&gt;&lt;BR /&gt;  Probably the best way - Assuming you have access to the LOGIN procedure of the process that runs the program, and you have an X server. Either the Alpha system itself, or a PC running eXcursion or similar. Modify the LOGIN, adding a line like:&lt;BR /&gt;&lt;BR /&gt;$ SET DISPLAY/CREATE/NODE=x-server/TRANSPORT=TCPIP&lt;BR /&gt;&lt;BR /&gt;Now RUN the program with /DEBUG.&lt;BR /&gt;&lt;BR /&gt;An X DEBUG window will appear on the X Server when the program is started. You can now single step etc...&lt;BR /&gt;&lt;BR /&gt;If you don't have an X environment, and you can grant the process SHARE privilege, then login at some terminal and detmine the terminal device name from SHOW TERM (say it's TNA124). Modify LOGIN, redirecting DEBUG input and output to your terminal:&lt;BR /&gt;&lt;BR /&gt;$ DEFINE DBG$INPUT TNA124:&lt;BR /&gt;$ DEFINE DBG$OUTPUT TNA124:&lt;BR /&gt;&lt;BR /&gt;Then RUN/DEBUG the program.&lt;BR /&gt;&lt;BR /&gt;From your terminal, issue a WAIT command to quiet your interactive process for a while:&lt;BR /&gt;&lt;BR /&gt;$ WAIT 5:00:00 ! Wait 5 hours  &lt;BR /&gt;&lt;BR /&gt;When the program runs, you'll get all DEBUG input and output at your terminal.&lt;BR /&gt;&lt;BR /&gt;If you don't have access to the LOGIN procedure of the process running the program, you can DEFINE DBG$INPUT and DBG$OUTPUT in (say) the GROUP table. Beware that any other process that runs a DEBUG image under that group will also try to start DEBUG at your terminal!&lt;BR /&gt;&lt;BR /&gt;There are plenty of other tricks for running DEBUG sessions, but see how you go with the above first.</description>
      <pubDate>Thu, 10 Nov 2005 21:31:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939877#M33031</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-11-10T21:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging DEC C program started from MS Window application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939878#M33032</link>
      <description>Thanks John,&lt;BR /&gt;&lt;BR /&gt;Looks like I can debug the program. I will try this from my standalone OpenVMS 7.3-2/ AlphaPWS 600au, on which I have DEC Windowns Motif.&lt;BR /&gt;&lt;BR /&gt;I will follow you suggestion ($ SET DISPLAY/CREATE/NODE=x-server/TRANSPORT=TCPIP&lt;BR /&gt;) tomorrow and I will get back to you.&lt;BR /&gt;&lt;BR /&gt;Please stay with me.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Archunan&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Nov 2005 01:53:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939878#M33032</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2005-11-11T01:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging DEC C program started from MS Window application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939879#M33033</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;I tried all your suggestions, it did not bring up the DEBUG screens. When try this from SYSTEM account.&lt;BR /&gt;&lt;BR /&gt;Today I found in VMS side, there is a daemon  process (dxx) which always in 'LISTEN' status on 5601 port. This daemon process is initiated by one DEC C program from SYSTEM account. When this 'dxx' daemon process receives any request from MS-windows, it starts the DEC C main program, which in turn starts running series of other DEC C programs. &lt;BR /&gt;&lt;BR /&gt;So I included $ SET DISPLAY/CREATE/Node= DECWIND_node/transport=tcpip cmd in the SYSTEM's login file. Is it OK?. Then I started the WINDOW program, but I did not see any DEBUG screens. Also when try to reboot (entered SYSTEM/password in DEC Window screen), DEC wind was hanging.  &lt;BR /&gt;&lt;BR /&gt;Also I found one of the *.LOG file has the following define statements.... &lt;BR /&gt;$ define sys$input xxx.log&lt;BR /&gt;$ define sys$output yyy.log&lt;BR /&gt;$ define sys$error zzz.log &lt;BR /&gt;&lt;BR /&gt;May these be the reason for unable to see the DEBUG window? or Is there any other way to debug?&lt;BR /&gt;&lt;BR /&gt;Currently, I am trying to see this dxx daemon process source code, how does it get started, how it calls other DEC C programs, what it does before/after receiving request from MS Windows (via 5601 port). &lt;BR /&gt;&lt;BR /&gt;Please suggest your suspections about this &lt;BR /&gt;daemon process and its possible involvement in DEBUG.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Archunan</description>
      <pubDate>Fri, 11 Nov 2005 20:33:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939879#M33033</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2005-11-11T20:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging DEC C program started from MS Window application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939880#M33034</link>
      <description>Archunan,&lt;BR /&gt;&lt;BR /&gt;  Are the target programs compiled and linked with /DEBUG? &lt;BR /&gt;&lt;BR /&gt;  I'd suggest you start with a very simple program you've compiled and linked with /DEBUG. Put it in a batch procedure and see if you can get remote debugging working, either using DECwindows or DEFINE DBG$INPUT and DBG$OUTPUT to a terminal. Once you've got that working, see how it might be adapted to work with your daemon process.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Also I found one of the *.LOG file has &lt;BR /&gt;&amp;gt;the following define statements.... &lt;BR /&gt;&amp;gt;$ define sys$input xxx.log&lt;BR /&gt;&amp;gt;$ define sys$output yyy.log&lt;BR /&gt;&amp;gt;$ define sys$error zzz.log &lt;BR /&gt;&lt;BR /&gt;  SYS$OUTPUT and SYS$ERROR are fine, but SYS$INPUT pointing to a log file?? That seems odd. Not a big deal though.&lt;BR /&gt;&lt;BR /&gt;  You can redirect DBG$INPUT and DBG$OUTPUT if you want, but it only makes sense if you're not using the DECwindows interface.&lt;BR /&gt;</description>
      <pubDate>Sun, 13 Nov 2005 16:53:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939880#M33034</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-11-13T16:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging DEC C program started from MS Window application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939881#M33035</link>
      <description>Thanks John for your response. I keep refreshing ITRC to see your response.&lt;BR /&gt;&lt;BR /&gt;By mistake I wrongly mentioned sys$input has been defined, it is not. Only sys$output and sys$err.&lt;BR /&gt;&lt;BR /&gt;I don't access vms machines from home, I will try your sugesstions tomorrow from the office and get back tomorrow.&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Sun, 13 Nov 2005 20:54:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939881#M33035</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2005-11-13T20:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging DEC C program started from MS Window application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939882#M33036</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;I have struggled last couple of days to understand few of the command procedure involved in this job initialization.&lt;BR /&gt;&lt;BR /&gt;It works fine both the as way you suggested.&lt;BR /&gt;1. define DBG$input and DBG$output&lt;BR /&gt;and &lt;BR /&gt;2. directly from DEC Windows.&lt;BR /&gt;&lt;BR /&gt;Till today noon, I tried all the way you suggested including remote submission. Finally after removing $SET DISPLAY xxxx cmd, it worked.&lt;BR /&gt;&lt;BR /&gt;Thanks so much John.&lt;BR /&gt;Archunan&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 19:25:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939882#M33036</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2005-11-16T19:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging DEC C program started from MS Window application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939883#M33037</link>
      <description>John and Jeff,&lt;BR /&gt;&lt;BR /&gt;Thanks for both of your suggestion, it works fine as per Mr.John's suggestions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Wed, 16 Nov 2005 19:50:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-dec-c-program-started-from-ms-window-application/m-p/4939883#M33037</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2005-11-16T19:50:05Z</dc:date>
    </item>
  </channel>
</rss>

