<?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: gdb-oneapi run error &amp;quot;An exception is caught for vector add&amp;quot; in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/gdb-oneapi-run-error-quot-An-exception-is-caught-for-vector-add/m-p/1665549#M4305</link>
    <description>&lt;P&gt;Thanks for the reply Sergey. I'll make the change soon. I have some high priority work tasks that are getting in the way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Eddie&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2025 23:29:06 GMT</pubDate>
    <dc:creator>eddie_patton</dc:creator>
    <dc:date>2025-02-12T23:29:06Z</dc:date>
    <item>
      <title>gdb-oneapi run error "An exception is caught for vector add"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/gdb-oneapi-run-error-quot-An-exception-is-caught-for-vector-add/m-p/1656074#M4277</link>
      <description>&lt;P&gt;oneAPI 2025&lt;/P&gt;&lt;P&gt;Windows 11&lt;/P&gt;&lt;P&gt;Visual Studio Code&lt;/P&gt;&lt;P&gt;I've read that gdb-oneapi gpu debugging is only available for linux, but I thought I'd give it a try because there is a gdb-oneapi.bat in Program Files (x86)\Intel\oneAPI\debugger\2025.0\bin&lt;/P&gt;&lt;P&gt;I used the vector-add example, ran the setvars command in the terminal, ran cmake and then nmake. The vector-add-buffers.exe runs in the terminal as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To build:&lt;/P&gt;&lt;P&gt;build&amp;gt; cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug ..&lt;/P&gt;&lt;P&gt;build&amp;gt; nmake cpu-gpu&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I set a breakpoint on the first line of code after main()&lt;/P&gt;&lt;P&gt;I ran the VS Code environment setup by Ctrl-Shift-P and selected &lt;EM&gt;"Intel oneAPI: Initialize default environment variables"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;When I configure a launch.json to run using gdb-oneapi, I get a &lt;EM&gt;"Paused on exception"&lt;/EM&gt;&amp;nbsp;after selecting the VS Code run button.&amp;nbsp;&lt;BR /&gt;The output in the terminal window is&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp; 'c:\Users\Eddie.Patton\.vscode\extensions\ms-vscode.cpptools-1.23.3-win32-x64\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-4kb3mbwo.e2g' '--stdout=Microsoft-MIEngine-Out-dfzcvjax.ms4' '--stderr=Microsoft-MIEngine-Error-mj1yfego.hsv' '--pid=Microsoft-MIEngine-Pid-z10rjzt3.2cc' '--dbgExe=C:\Program Files (x86)\Intel\oneAPI\debugger\latest\env\\..\opt\debugger\bin\gdb-oneapi.exe' '--interpreter=mi'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure why the WindowsDebugLauncher.exe is above, it doesn't seem right to me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;and VS Code shows the thread stack&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eddie_patton_0-1736566975248.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/61736i896953C91492A160/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="eddie_patton_0-1736566975248.png" alt="eddie_patton_0-1736566975248.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I've attached the launch.json file.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2025 04:20:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/gdb-oneapi-run-error-quot-An-exception-is-caught-for-vector-add/m-p/1656074#M4277</guid>
      <dc:creator>eddie_patton</dc:creator>
      <dc:date>2025-01-11T04:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: gdb-oneapi run error "An exception is caught for vector add"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/gdb-oneapi-run-error-quot-An-exception-is-caught-for-vector-add/m-p/1664067#M4292</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/234546"&gt;@eddie_patton&lt;/a&gt;&amp;nbsp;!,&lt;/P&gt;&lt;P&gt;Thank you for your question,&lt;/P&gt;&lt;P&gt;To better understand the issue, could you please modify your launch.json configuration by adding the following logging options?:&lt;/P&gt;&lt;PRE&gt;"logging": {&lt;BR /&gt;    "moduleLoad": true,&lt;BR /&gt;    "trace": true,&lt;BR /&gt;    "programOutput": true,&lt;BR /&gt;    "exceptions": true&lt;BR /&gt;},&lt;/PRE&gt;&lt;P&gt;Additionally, in "setupCommands", please include:&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;"description": "logging file",&lt;BR /&gt;"text": "set logging enable on",&lt;BR /&gt;"ignoreFailures": true&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;After applying these changes, please share the gdb.txt file and&amp;nbsp;log from the DEBUG CONSOLE.&lt;/P&gt;&lt;P&gt;This will help me analyze the behavior and provide a more accurate response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Sergey Bobko&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 12:58:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/gdb-oneapi-run-error-quot-An-exception-is-caught-for-vector-add/m-p/1664067#M4292</guid>
      <dc:creator>Sergey_Bobko</dc:creator>
      <dc:date>2025-02-07T12:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: gdb-oneapi run error "An exception is caught for vector add"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/gdb-oneapi-run-error-quot-An-exception-is-caught-for-vector-add/m-p/1665549#M4305</link>
      <description>&lt;P&gt;Thanks for the reply Sergey. I'll make the change soon. I have some high priority work tasks that are getting in the way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Eddie&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 23:29:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/gdb-oneapi-run-error-quot-An-exception-is-caught-for-vector-add/m-p/1665549#M4305</guid>
      <dc:creator>eddie_patton</dc:creator>
      <dc:date>2025-02-12T23:29:06Z</dc:date>
    </item>
  </channel>
</rss>

