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.
In Eclipse debugger can display pointer as array. It is very useful feature but C/C++ Pack have not analogue. For example It can work in Netbeans in such a way: - Load this program to debugger: int main() { int* p; p = new int(5); p[0] = 0; p[1] = 1; p[2] = 2; p[3] = 3; p[4] = 4; return 0; } - Set line breakpoint on "return 0;" string - Go to this line - Open 'Local Variables' tab - Select 'p' in tab and call context menu. Select 'display as array' menu item ==> dialog window appears - Set size of array ==> 'Local Variables' tab contains such strings: p (int*)0x111111 p[0] 0 p[1] 1 p[2] 2 p[3] 3 p[4] 4
Has anybody solved this? I am using 7.0.1 and I can't figure out how to display an array! (In reply to comment #0) > In Eclipse debugger can display pointer as array. It is very useful feature but > C/C++ Pack have not analogue. > For example It can work in Netbeans in such a way: > - Load this program to debugger: > int main() { > int* p; > p = new int(5); > p[0] = 0; > p[1] = 1; > p[2] = 2; > p[3] = 3; > p[4] = 4; > return 0; > } > - Set line breakpoint on "return 0;" string > - Go to this line > - Open 'Local Variables' tab > - Select 'p' in tab and call context menu. Select 'display as array' menu item > ==> dialog window appears > - Set size of array > ==> 'Local Variables' tab contains such strings: > p (int*)0x111111 > p[0] 0 > p[1] 1 > p[2] 2 > p[3] 3 > p[4] 4
Workaround: add "*p@5" string into Variables tab
*** Bug 192115 has been marked as a duplicate of this bug. ***