Author Topic: Python debugging watch: Strings editing  (Read 1126 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2168
  • Hero Points: 191
  • Text
Python debugging watch: Strings editing
« on: August 02, 2019, 06:29:51 pm »
String variable value editing in "Watches" is annoying due to the escapes.
The edit box allows entering control characters with Ctrl+Q, so it isn't necessary to support "\" escapes here.
It even escapes ' (single quote), but it doesn't need to.


When the Modify dialog has "(o) String" selected, the value of the edit box should be taken verbatim.
When the Modify dialog has "(o) Expression" selected, the value of the edit box should be taken as an expression - where you could enter a quoted string with escapes.


Some examples:
1: Enter: a\b\c\d\e\f
Resulting value: a\b\\c\\d\\e\f

2: Enter: 'A'
Results: \'A\'

3: Enter: "A"
Results in error dialog:
---------------------------
SlickEdit Pro
---------------------------
Could not modify variable:  Error opening file
---------------------------
OK   
---------------------------