You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I am trying to evaluate some expression in the debug console in VS code but got this error on both mac os or linux. The expression is copied from running code in current cpp file under debugging. Any suggestion is appreciated. Thanks!
/se myjson["value"][1]
'str' object cannot be interpreted as an integer
/se myjson["value"][1].toString()
Syntax error: myjson["value"][1].toString()
^
/nat myjson["value"][1].toString()
error: Couldn't lookup symbols:
__ZNSt3__117basic_string_viewIcNS_11char_traitsIcEEEC1EPKc
/nat myjson["value"][1]
error: Couldn't lookup symbols:
__ZNSt3__117basic_string_viewIcNS_11char_traitsIcEEEC1EPKc
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there, I am trying to evaluate some expression in the debug console in VS code but got this error on both mac os or linux. The expression is copied from running code in current cpp file under debugging. Any suggestion is appreciated. Thanks!
/se myjson["value"][1]
'str' object cannot be interpreted as an integer
/se myjson["value"][1].toString()
Syntax error: myjson["value"][1].toString()
^
/nat myjson["value"][1].toString()
error: Couldn't lookup symbols:
__ZNSt3__117basic_string_viewIcNS_11char_traitsIcEEEC1EPKc
/nat myjson["value"][1]
error: Couldn't lookup symbols:
__ZNSt3__117basic_string_viewIcNS_11char_traitsIcEEEC1EPKc
Beta Was this translation helpful? Give feedback.
All reactions