Luchian Grigore
Luchian Grigore

Reputation: 258618

How to display muti-character constant in MSVS watch window?

I've got an int variable with the value assigned from a multi-character constant and the watch window show it to me as the number, is there a way to ask it to display the original value (maybe through a cast)?

i.e. I want to see

var    |      'abcd'

instead of

var    |      194345432231

(disclaimer: values are dummy values)

Upvotes: 0

Views: 65

Answers (1)

Roman Ryltsov
Roman Ryltsov

Reputation: 69687

Cast (+ possibly format specifiers) might be of some use, however the flexibility there is limited:

Upvotes: 3

Related Questions