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.

Bug 207378 - debugger's tooltip doesn't appear if selected code contains comment
Summary: debugger's tooltip doesn't appear if selected code contains comment
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.2
Hardware: PC All
: P3 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-17 08:32 UTC by soldatov
Modified: 2012-04-27 10:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2012-01-17 08:32:45 UTC
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)
Comment 1 Egor Ushakov 2012-01-17 09:00:22 UTC
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.
Comment 2 nnnnnk 2012-01-23 09:36:54 UTC

*** This bug has been marked as a duplicate of bug 196228 ***
Comment 3 Egor Ushakov 2012-04-26 12:25:02 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/323342f82d00
Comment 4 Quality Engineering 2012-04-27 10:00:22 UTC
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