News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Debug Watch Formula?

Started by rogeriodec, March 21, 2018, 12:16:14 AM

Previous topic - Next topic

rogeriodec

In debug, while watching variables, is it possible to create an auxiliary formula (out of code)?
Example: my variable "a" has an angle in radians, but I would also like to see the same angle in degrees, so I would create a formula (a * 180 / 3.1415927) to see the contents of the variable also in degrees.
But as I said, this formula would not be in the code, but only in the debug.
Windows 8.1

SVN 11400

oBFusCATed

Yes, you can do it.
Right click -> Rename and type your expression. A short cut for this is pressing the Insert key.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

rogeriodec

This option is greyed out. Why?
Windows 8.1

SVN 11400

oBFusCATed

Locals and function arguments cannot be renamed.
You have to add the watch manually below them.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

rogeriodec

Thanks, but I'm not finding how to do this.
Right click where? In the "Whatches" window I can not get anything. The Insert key also does not change anything.
Windows 8.1

SVN 11400

Quiss

Right click the variable in the code, then select "watch 'variable'".

oBFusCATed

There is also one empty row at the bottom were you can start typing your expression.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

rogeriodec

Now I got it!
Thank you very much.
Windows 8.1

SVN 11400