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.
Using example code: Int x[] = {1, 2, 3, 4, 5}; Int* pointer = &x[1] ; x is correctly displayed as an Array without having to create a watch. If you want to display "pointer" as an array of length 4 in the debugging session, the solution for NetBeans 8.0.2 was to create a watch (*pointer@4). This does not work in 8.1 beta/rc. The error displayed is "OUT OF SCOPE".
In GDB log I see: 45-var-create - @ (*pointer4)
Workaround: restart debugger
ClankFileInfoQuerySupport.expand(fileImpl, code, handler, base, offset) transforms '@' into '' Workaround is to set -Dapt.use.clank=false
Created attachment 156628 [details] patched lexer Could you replace, please, your jar with mine.
Integrated into 'main-silver', will be available in build *201510090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/99942eb0d6b7 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: binaries update: fixed #255758 Arrays evaluation in watches broken (regression) fixing #255804 - AssertionError: already initialized normalized file?
http://hg.netbeans.org/main-silver/rev/99942eb0d6b7 in sputnik: https://hg.kenai.com/hg/sputnik~main/rev/e5f842c2658b
The fix is safe and resolves the issue.
Transplanted status: Changesets which modified only binaries-list were skipped except the latest one. Changeset http://hg.netbeans.org/cnd-main/rev/99942eb0d6b7 may be considered as a "transplanted" one
verified in RC2 build.