Setting variables in Debug mode
已回答
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.
请先登录再写评论。
BTW, I'm user of CLion 2021.2.3, Build #CL-212.5457.51, built on October 14, 2021
Hello!
I think it's related to https://youtrack.jetbrains.com/issue/CPP-4992. Feel free to comment or upvote the issue. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
Thanks Anna. It works well and smoothly ^^
bing maps