This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 123364 [details] A simple fortran source file and a Makefile to compile it When I try to run a debug session with a Fortran code I can see the names of all local variables and arrays in the "Variables" window. However, only static arrays can be expanded and watched. Dynamically allocated arrays are not watchable (the names appear to be there but they cannot be expanded). I assume this bug should be easily reproducible. The attached simple hello.f90 source file and Makefile can be used for that. What I did I created a new C/C++ project with existing sources and used custom configuration (with the default choice for everything else). Just put a breakpoint at one of the write statements, start a debug session and look at the list of variables in the "Variables" window. The values of array a can be seen, while the values of array b (which is dynamically allocated) cannot be.
I have the same issues in windows 7, netbeans 8
Nikolay, please, have a look
Is there a way to evaluate arrays of such a kind in the command line mode? It looks like GDB is unable to do it.
Any idea how to fix this issue?. I have been having this problem and I think it is related to gdb debugger and not netbeans. I'm facing this problem for dynamic allocated array variables and also for types defined in different modules.
(In reply to darklord1419 from comment #4) > Any idea how to fix this issue?. I have been having this problem and I think > it is related to gdb debugger and not netbeans. I'm facing this problem for > dynamic allocated array variables and also for types defined in different > modules. In GDB console user can use (b@10) name in order to display first 10 items of b. But In NetBeans 8.2 I can use (array@length) syntax in C or C++ applications only. I will create separated bug.
works for me on my ubuntu 16.04 I can see values for both arrays from example attached: "a" and "b" C Compiler: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 C++ Compiler: g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 Fortran Compiler: GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 Assembler: GNU assembler (GNU Binutils for Ubuntu) 2.26.1 Make Tool: GNU Make 4.1 Debugger: GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1 QMake Tool: qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory CMake Tool: Tool not found