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.
debugger's tooltip doesn't appear if selected code contains comment Code: int main(int argc, char**argv) { int v1 = 1 + /*text*/ 5; int v2 = 1 + 5; return 0; } Scenario: - Push Step Into - Select "1 + 5" and move cursor on selected text ==> "1 + 5 = 6" tooltip appears - Select "1 + /*text*/ 5" and move cursor on selected text ==> tooltip doesn't appear 60-gdb-set unwindonsignal on 59^done (gdb) 61-data-evaluate-expression "1+<comment text skipped>5" 62-gdb-set unwindonsignal off 60^done (gdb) &"A syntax error in expression, near `<comment text skipped>5'.\n" 61^error,msg="A syntax error in expression, near `<comment text skipped>5'." (gdb)
debugger uses CsmMacroExpansion.expand(doc, offset, expr) which returns <comment text skipped> line instead of the comment, it should simply skip the comments in the output.
*** This bug has been marked as a duplicate of bug 196228 ***
fixed in: http://hg.netbeans.org/cnd-main/rev/323342f82d00
Integrated into 'main-golden', will be available in build *201204270400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/323342f82d00 User: Egor Ushakov <gorrus@netbeans.org> Log: fixed #207378 - debugger's tooltip doesn't appear if selected code contains comment