User forums > Using Code::Blocks

Trigonometric functions not being displayed correctly in debug

(1/1)

rogeriodec:
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?

oBFusCATed:
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.

Navigation

[0] Message Index

Go to full version