The value displayed in the watch expression is the same as the value displayed when running on the source or debug console.
<variable name>,h
may have been referenced by the C++ notation, but Python simply interprets it as the variable h
and outputs it.
You can watch hexadecimal numbers in the same description as when displaying hexadecimal numbers in the source or debug console.
hex(<variable name>)
to make the number hex.
In your environment, I was able to confirm the hexadecimal notation of the string by using the following description in a watch style.
ord(hoge)
"{:x}".format(ord(hoge))
:X
uppercasebinascii.hexlify(u.encode("utf-8")
import binascii
As for the watch expression, it does not use print statements, so syntax that can be used in print like hoge, fuga, sep="&"
is an error.
© 2024 OneMinuteCode. All rights reserved.