You have to wrap the variable you are logging with the @ character, @i@, instead of $i. The message you log should be the following:
The current value for I is: @i@
Read the following article for more details:
https://www.swiftdevjournal.com/replace-swift-print-statements-with-xcode-breakpoint-actions/
The article talks about Swift code, not C++, but the material applies to C++ code as well.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: