<?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 Debugging with external process in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Debugging-with-external-process/m-p/997558#M102774</link>
    <description>&lt;P&gt;I'm trying to debug a console app on Windows that it called by a VC++/VB UI via a batch file. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I've tried pointing to the batch file as the Command on the Debugging Properties tab along with the arguments passed to the batch from the UI. &amp;nbsp;VS balked - the Command is required to be an EXE. &amp;nbsp;I also determined what the arguments were, pointed to the target with the arguments but that fails as the console app asks for process ids from the UI, so the UI has to be active.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I've tried attaching to the UI process and then manipulating the UI to launch the console app (which it does by making a system call to the same batch file mentioned above). &amp;nbsp;I thought I made sure the target was placed in the location where the UI was expecting to find it however a break point at the entry point was reached - I have to verify that the image I want the UI to access is the one I compiled. I've never attempted to debug this way - I just attached to the process of the UI and nothing more - there were no debug files available for the UI - not sure if I need them or where they would go (next to UI.exe?) or if there is anything else to do, or if I'm just SOL.&lt;/P&gt;

&lt;P&gt;I'm resigning myself to resorting to a file to report intermediate value to debug - how archaic :-)&lt;/P&gt;

&lt;P&gt;Any suggestions? &amp;nbsp;Should I surrender? Need additional info?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 03 Feb 2015 18:02:12 GMT</pubDate>
    <dc:creator>Ted_Lillys</dc:creator>
    <dc:date>2015-02-03T18:02:12Z</dc:date>
    <item>
      <title>Debugging with external process</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Debugging-with-external-process/m-p/997558#M102774</link>
      <description>&lt;P&gt;I'm trying to debug a console app on Windows that it called by a VC++/VB UI via a batch file. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I've tried pointing to the batch file as the Command on the Debugging Properties tab along with the arguments passed to the batch from the UI. &amp;nbsp;VS balked - the Command is required to be an EXE. &amp;nbsp;I also determined what the arguments were, pointed to the target with the arguments but that fails as the console app asks for process ids from the UI, so the UI has to be active.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I've tried attaching to the UI process and then manipulating the UI to launch the console app (which it does by making a system call to the same batch file mentioned above). &amp;nbsp;I thought I made sure the target was placed in the location where the UI was expecting to find it however a break point at the entry point was reached - I have to verify that the image I want the UI to access is the one I compiled. I've never attempted to debug this way - I just attached to the process of the UI and nothing more - there were no debug files available for the UI - not sure if I need them or where they would go (next to UI.exe?) or if there is anything else to do, or if I'm just SOL.&lt;/P&gt;

&lt;P&gt;I'm resigning myself to resorting to a file to report intermediate value to debug - how archaic :-)&lt;/P&gt;

&lt;P&gt;Any suggestions? &amp;nbsp;Should I surrender? Need additional info?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2015 18:02:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Debugging-with-external-process/m-p/997558#M102774</guid>
      <dc:creator>Ted_Lillys</dc:creator>
      <dc:date>2015-02-03T18:02:12Z</dc:date>
    </item>
    <item>
      <title>Correction on the second</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Debugging-with-external-process/m-p/997559#M102775</link>
      <description>&lt;P&gt;Correction on the second paragraph - a breakpoint at the entry point was &lt;STRONG&gt;NOT&lt;/STRONG&gt; reached.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2015 18:06:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Debugging-with-external-process/m-p/997559#M102775</guid>
      <dc:creator>Ted_Lillys</dc:creator>
      <dc:date>2015-02-03T18:06:50Z</dc:date>
    </item>
    <item>
      <title>You could try using CMD.EXE</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Debugging-with-external-process/m-p/997560#M102776</link>
      <description>&lt;P&gt;You could try using CMD.EXE as the executable, with the command line arguments being /K followed by the path to the script. Be sure to enclose the script path in quotes.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2015 18:26:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Debugging-with-external-process/m-p/997560#M102776</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-02-03T18:26:41Z</dc:date>
    </item>
    <item>
      <title>Can't you simply enter the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Debugging-with-external-process/m-p/997561#M102777</link>
      <description>&lt;P&gt;Can't you simply enter the information that is contained in your batch file to invoke the console app under the debugging properties of the Visual Studio solution for the console app and start the debugger from VS?&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="debug.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/7269i0422937E8411D251/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="debug.png" alt="debug.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2015 19:27:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Debugging-with-external-process/m-p/997561#M102777</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2015-02-03T19:27:09Z</dc:date>
    </item>
    <item>
      <title>The batch file is not</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Debugging-with-external-process/m-p/997562#M102778</link>
      <description>&lt;P&gt;The batch file is not complicated but it has some steps prior to calling the console. &amp;nbsp;I was able to get Steve's suggestion to work, but the success is limited - there are process IDs initiated by the parent process (the UI) that need to be referenced by the console app I'm trying to debug. &amp;nbsp;I think my only option is to attached to the UI.&lt;/P&gt;

&lt;P&gt;Thanks for the suggestions, though.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2015 20:39:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Debugging-with-external-process/m-p/997562#M102778</guid>
      <dc:creator>Ted_Lillys</dc:creator>
      <dc:date>2015-02-03T20:39:30Z</dc:date>
    </item>
  </channel>
</rss>

