Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: rogeriodec on April 18, 2018, 02:55:18 am

Title: Trigonometric functions not being displayed correctly in debug
Post by: rogeriodec on April 18, 2018, 02:55:18 am
In debug, if I want to watch, for example "cos(angle)" or "sin(angle)", it shows always the number 6.
To watch the correct result, I have to create a temporary variable to receive the result of "cos" or "sin" and then and this variable to watches.
Is it a bug?
Title: Re: Trigonometric functions not being displayed correctly in debug
Post by: oBFusCATed on April 18, 2018, 08:23:57 am
This is a question for the developers of your debugger (probably gdb).
We don't develop a debugger, we just pass commands to it.
GDB can call functions in expressions, but this doesn't work 100% of the time.