Setting variables in Debug mode

Answered

Hi, there

How can I set the value of a non const, non static built-in type (float, i.e.) which is a global variable in Debug mode (program suspended at a breakpoint)? I have it in the Watch window, but it is only allowed to change the name (F2 key), not the value. If it is not a built-in type (a struct, i.e.) and also global, it is allowed to change values of the data fields (which are built-in types). Not very logical indeed.

Thanks in advance.

3 comments
Comment actions Permalink

BTW, I'm user of CLion 2021.2.3, Build #CL-212.5457.51, built on October 14, 2021

0
Comment actions Permalink

Thanks Anna. It works well and smoothly ^^

bing maps

0

Please sign in to leave a comment.