<?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 Can I debug with idb in Xcode? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745157#M3397</link>
    <description>You will have to show me your screen capture because I still can see the structure, as far as I understand:&lt;BR /&gt;&lt;BR /&gt;ifort -o deb -save-temps -g -O0 deb.f90&lt;BR /&gt;fordprefect:731088 rwgreen$ !idb&lt;BR /&gt;idb ./deb&lt;BR /&gt;Intel Debugger for applications running on Intel 64, Version 11.1, Build [1.2097.2.319]&lt;BR /&gt;------------------ &lt;BR /&gt;object file name: ./deb &lt;BR /&gt;Reading symbols from /Users/rwgreen/quads/forums/731088/deb...done.&lt;BR /&gt;(idb) list&lt;BR /&gt;6  integer :: bar&lt;BR /&gt;7 end type tracer_type&lt;BR /&gt;8 &lt;BR /&gt;9 type (tracer_type) :: my_struct(10)&lt;BR /&gt;10 &lt;BR /&gt;11 my_struct(1:10)%foo = 42.0&lt;BR /&gt;12 my_struct(1:10)%bar = 43&lt;BR /&gt;13 &lt;BR /&gt;14 print*, "done"&lt;BR /&gt;15 &lt;BR /&gt;(idb) break 14&lt;BR /&gt;Breakpoint 1 at 0x100000a39: file /Users/rwgreen/quads/forums/731088/deb.f90, line 14.&lt;BR /&gt;(idb) run&lt;BR /&gt;Starting program: /Users/rwgreen/quads/forums/731088/deb&lt;BR /&gt;&lt;BR /&gt;Breakpoint 1, deb () at /Users/rwgreen/quads/forums/731088/deb.f90:14&lt;BR /&gt;14 print*, "done"&lt;BR /&gt;(idb) p my_struct(1)&lt;BR /&gt;$1 = {foo = 42, bar = 43}&lt;BR /&gt;(idb) p my_struct&lt;BR /&gt;$2 = {{foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}}&lt;BR /&gt;(idb) quit&lt;BR /&gt;The program is running. Exit anyway? (y or n) y&lt;BR /&gt;fordprefect:731088 rwgreen$ &lt;BR /&gt;fordprefect:731088 rwgreen$ &lt;BR /&gt;fordprefect:731088 rwgreen$ cat deb.f90&lt;BR /&gt;program deb&lt;BR /&gt;implicit none&lt;BR /&gt;&lt;BR /&gt;type tracer_type&lt;BR /&gt; real :: foo&lt;BR /&gt; integer :: bar&lt;BR /&gt;end type tracer_type&lt;BR /&gt;&lt;BR /&gt;type (tracer_type) :: my_struct(10)&lt;BR /&gt;&lt;BR /&gt;my_struct(1:10)%foo = 42.0&lt;BR /&gt;my_struct(1:10)%bar = 43&lt;BR /&gt;&lt;BR /&gt;print*, "done"&lt;BR /&gt;&lt;BR /&gt;end program deb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To insert text, there is an icon above the edit window, 2nd row, 4th icon. Looks like a pencil or erase - no, I think it is supposed to be a highlight pen. Try that.&lt;BR /&gt;&lt;BR /&gt;ron</description>
    <pubDate>Wed, 31 Mar 2010 17:29:44 GMT</pubDate>
    <dc:creator>Ron_Green</dc:creator>
    <dc:date>2010-03-31T17:29:44Z</dc:date>
    <item>
      <title>Can I debug with idb in Xcode?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745152#M3392</link>
      <description>Hi everyone,
&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;Recently, I switched to develop Fortran program in Xcode with Intel Fortran compiler 11.1.084. When I debug, Xcode uses gdb. But I can't viewthe constant variables or public variables of a module from gdb. So how can I debug Fortran with idb in Xcode? I have done some search on the internet, but still can't figure it out.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;And it seems that I can't see the array in user defined type with idb, too. It doesn't support "::" operator. How to see it?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Cheers,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;DONG Li&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Mar 2010 15:02:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745152#M3392</guid>
      <dc:creator>Li_Dong</dc:creator>
      <dc:date>2010-03-29T15:02:54Z</dc:date>
    </item>
    <item>
      <title>Can I debug with idb in Xcode?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745153#M3393</link>
      <description>IDB does not work under Xcode.&lt;BR /&gt;&lt;BR /&gt;What is the entire command and syntax you use in IDB to view the array component? type%array ?&lt;BR /&gt;&lt;BR /&gt;ron</description>
      <pubDate>Mon, 29 Mar 2010 17:35:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745153#M3393</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2010-03-29T17:35:35Z</dc:date>
    </item>
    <item>
      <title>Can I debug with idb in Xcode?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745154#M3394</link>
      <description>Hi ron,
&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;What a pity that IDB doesn't work with Xcode!&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I define a type "tracer_type", and declare a 1D array "tracers" in that type. When I am in IDB, I input "p tracers(1)", it says&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV&gt;
&lt;DIV id="_mcePaste"&gt;&lt;B&gt;(idb) p tracers(1)&lt;/B&gt;&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;No symbol "tracers" in current context.&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;Evaluating 'tracers' failed!&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;Could not evaluate array expression tracers(1).&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;cannot evaluate tracers(1)&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Cheers,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;DONG Li&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Mar 2010 01:08:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745154#M3394</guid>
      <dc:creator>Li_Dong</dc:creator>
      <dc:date>2010-03-30T01:08:48Z</dc:date>
    </item>
    <item>
      <title>Can I debug with idb in Xcode?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745155#M3395</link>
      <description>I don't seem to be able to reproduce what you are seeing. Here is my output:&lt;BR /&gt;&lt;BR /&gt;fordprefect:731088 rwgreen$ ifort -o deb -save-temps -g -O0 deb.f90&lt;BR /&gt;fordprefect:731088 rwgreen$ idb deb&lt;BR /&gt;Intel Debugger for applications running on Intel 64, Version 11.1, Build [1.2097.2.319]&lt;BR /&gt;------------------ &lt;BR /&gt;object file name: deb &lt;BR /&gt;Reading symbols from /Users/rwgreen/quads/forums/731088/deb...done.&lt;BR /&gt;(idb) list&lt;BR /&gt;5  real :: tracers(10)&lt;BR /&gt;6 end type tracer_type&lt;BR /&gt;7 &lt;BR /&gt;8 type (tracer_type) :: my_struct&lt;BR /&gt;9 &lt;BR /&gt;10 my_struct%tracers = 42.0&lt;BR /&gt;11 &lt;BR /&gt;12 print*, "Tracer(1)", my_struct%tracers(1)&lt;BR /&gt;13 &lt;BR /&gt;14 end program deb&lt;BR /&gt;(idb) break 12&lt;BR /&gt;Breakpoint 1 at 0x100000a06: file /Users/rwgreen/quads/forums/731088/deb.f90, line 12.&lt;BR /&gt;(idb) run&lt;BR /&gt;Starting program: /Users/rwgreen/quads/forums/731088/deb&lt;BR /&gt;&lt;BR /&gt;Breakpoint 1, deb () at /Users/rwgreen/quads/forums/731088/deb.f90:12&lt;BR /&gt;12 print*, "Tracer(1)", my_struct%tracers(1)&lt;BR /&gt;(idb) p my_struct%tracers(1)&lt;BR /&gt;$1 = 42&lt;BR /&gt;(idb) p my_struct%tracers&lt;BR /&gt;$2 = {42, 42, 42, 42, 42, 42, 42, 42, 42, 42}&lt;BR /&gt;(idb) quit&lt;BR /&gt;The program is running. Exit anyway? (y or n) y&lt;BR /&gt;fordprefect:731088 rwgreen$ cat deb.f90&lt;BR /&gt;&lt;BR /&gt;program deb&lt;BR /&gt;implicit none&lt;BR /&gt;&lt;BR /&gt;type tracer_type&lt;BR /&gt; real :: tracers(10)&lt;BR /&gt;end type tracer_type&lt;BR /&gt;&lt;BR /&gt;type (tracer_type) :: my_struct&lt;BR /&gt;&lt;BR /&gt;my_struct%tracers = 42.0&lt;BR /&gt;&lt;BR /&gt;print*, "Tracer(1)", my_struct%tracers(1)&lt;BR /&gt;&lt;BR /&gt;end program deb&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2010 14:46:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745155#M3395</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2010-03-30T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Can I debug with idb in Xcode?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745156#M3396</link>
      <description>Hi, the simplified version of my code is
&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV&gt;type tracer_type&lt;/DIV&gt;
&lt;DIV&gt;... ! some variables&lt;/DIV&gt;
&lt;DIV&gt;end type tracer_type&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;type(tracer_type) tracers(10) ! an array in type of tracer_type&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;DIV&gt;So I got an array in type of "tracer_type", not an array in the type structure of it.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Cheers&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;PS:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;How do I input formal code with color in forum? : P&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Mar 2010 02:07:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745156#M3396</guid>
      <dc:creator>Li_Dong</dc:creator>
      <dc:date>2010-03-31T02:07:00Z</dc:date>
    </item>
    <item>
      <title>Can I debug with idb in Xcode?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745157#M3397</link>
      <description>You will have to show me your screen capture because I still can see the structure, as far as I understand:&lt;BR /&gt;&lt;BR /&gt;ifort -o deb -save-temps -g -O0 deb.f90&lt;BR /&gt;fordprefect:731088 rwgreen$ !idb&lt;BR /&gt;idb ./deb&lt;BR /&gt;Intel Debugger for applications running on Intel 64, Version 11.1, Build [1.2097.2.319]&lt;BR /&gt;------------------ &lt;BR /&gt;object file name: ./deb &lt;BR /&gt;Reading symbols from /Users/rwgreen/quads/forums/731088/deb...done.&lt;BR /&gt;(idb) list&lt;BR /&gt;6  integer :: bar&lt;BR /&gt;7 end type tracer_type&lt;BR /&gt;8 &lt;BR /&gt;9 type (tracer_type) :: my_struct(10)&lt;BR /&gt;10 &lt;BR /&gt;11 my_struct(1:10)%foo = 42.0&lt;BR /&gt;12 my_struct(1:10)%bar = 43&lt;BR /&gt;13 &lt;BR /&gt;14 print*, "done"&lt;BR /&gt;15 &lt;BR /&gt;(idb) break 14&lt;BR /&gt;Breakpoint 1 at 0x100000a39: file /Users/rwgreen/quads/forums/731088/deb.f90, line 14.&lt;BR /&gt;(idb) run&lt;BR /&gt;Starting program: /Users/rwgreen/quads/forums/731088/deb&lt;BR /&gt;&lt;BR /&gt;Breakpoint 1, deb () at /Users/rwgreen/quads/forums/731088/deb.f90:14&lt;BR /&gt;14 print*, "done"&lt;BR /&gt;(idb) p my_struct(1)&lt;BR /&gt;$1 = {foo = 42, bar = 43}&lt;BR /&gt;(idb) p my_struct&lt;BR /&gt;$2 = {{foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}, {foo = 42, bar = 43}}&lt;BR /&gt;(idb) quit&lt;BR /&gt;The program is running. Exit anyway? (y or n) y&lt;BR /&gt;fordprefect:731088 rwgreen$ &lt;BR /&gt;fordprefect:731088 rwgreen$ &lt;BR /&gt;fordprefect:731088 rwgreen$ cat deb.f90&lt;BR /&gt;program deb&lt;BR /&gt;implicit none&lt;BR /&gt;&lt;BR /&gt;type tracer_type&lt;BR /&gt; real :: foo&lt;BR /&gt; integer :: bar&lt;BR /&gt;end type tracer_type&lt;BR /&gt;&lt;BR /&gt;type (tracer_type) :: my_struct(10)&lt;BR /&gt;&lt;BR /&gt;my_struct(1:10)%foo = 42.0&lt;BR /&gt;my_struct(1:10)%bar = 43&lt;BR /&gt;&lt;BR /&gt;print*, "done"&lt;BR /&gt;&lt;BR /&gt;end program deb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To insert text, there is an icon above the edit window, 2nd row, 4th icon. Looks like a pencil or erase - no, I think it is supposed to be a highlight pen. Try that.&lt;BR /&gt;&lt;BR /&gt;ron</description>
      <pubDate>Wed, 31 Mar 2010 17:29:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745157#M3397</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2010-03-31T17:29:44Z</dc:date>
    </item>
    <item>
      <title>Can I debug with idb in Xcode?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745158#M3398</link>
      <description>Hi ron,
&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;I find out what is the problem. My main program (main.f90) uses a module (tracer.f90) which defines a type (tracer_type) and an array in that type (tracers). Then I can display the content of "tracers" in that module, but I can't see them in main program.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;So the main program is not in the scope of "tracers".&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I also tried "p tracer::tracers(1)", but it doesn't work. How to see it without in its module?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks for help!&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;DONG Li&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Apr 2010 02:07:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745158#M3398</guid>
      <dc:creator>Li_Dong</dc:creator>
      <dc:date>2010-04-01T02:07:13Z</dc:date>
    </item>
    <item>
      <title>Can I debug with idb in Xcode?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745159#M3399</link>
      <description>CAn you show a code sample?</description>
      <pubDate>Thu, 01 Apr 2010 14:17:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-I-debug-with-idb-in-Xcode/m-p/745159#M3399</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2010-04-01T14:17:39Z</dc:date>
    </item>
  </channel>
</rss>

