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 258041 - Too many backslashes ('\\'' instead of '\'') in variables view annoys very much
Summary: Too many backslashes ('\\'' instead of '\'') in variables view annoys very much
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-17 16:53 UTC by Vladimir Kvashin
Modified: 2016-09-01 19:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (3.11 KB, image/png)
2016-02-17 16:53 UTC, Vladimir Kvashin
Details
screenshot (26.30 KB, image/png)
2016-02-19 11:55 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2016-02-17 16:53:49 UTC
Created attachment 158545 [details]
screenshot

When escaping characters and strings in the variables view IDE shows too many backslashes. For example, a single quote character is displayed as '\\'' instead of '\''

This annoys very much.
Comment 1 Vladimir Kvashin 2016-02-18 16:08:13 UTC
Another example is as follows: I have a std::string variable that contains the following string (in C notation): "\'\t\'\ = $TAB"
In other words it's the same as 
char str[] = { '\'', '\t', '\'', ' ', '=', ' ', '$', 'T', 'A', 'B', 0 }

Tool tip shows
*&str="'\\\\t' = $TAB "

These 4 backslashes drive me crazy.
Comment 2 Vladimir Kvashin 2016-02-18 16:10:39 UTC
> the following string (in C notation): "\'\t\'\ = $TAB"
sorry for the typo - I added one superfluous backslash as well - I meant
"\'\t\' = $TAB"
Comment 3 Vladimir Kvashin 2016-02-19 11:55:10 UTC
Created attachment 158568 [details]
screenshot

The following is blowing my mind
"'\\\\013'/*\\\\v*/"
So I have to use memory window (see attached screenshot)