« Return to Thread: [67cat][debugger] Expression evaluation issue?

Re: [67cat][debugger] Expression evaluation issue?

by Jiri Kovalsky :: Rate this Message:

Reply to Author | View in Thread

Hello Claudiu,

I can't open that file. Could you please archive it as ZIP?

Thanks, Jirka

Claudiu Bulcu wrote:

> You have a sample project attached to play with.
>
> Run the application, and see the normal output.
>
> Then break the execution before the
> int dif = ...
> line, and play with quick evaluation. You'll end up with a surprise
> value written out to the console.
>
> On Thu, Jun 18, 2009 at 12:22 AM, wrote:
>
>>  Wow,
>>
>>  This issue has some nasty consequences on the next steps, because
>>  the quick eval also decrement "subtract", which loses its real value
>>  during the debugging process, and the data gets corrupted.
>>
>>  This has to be a showstopper.
>>
>>
>>  On Thu, Jun 18, 2009 at 12:00 AM, Claudiu Bulcu wrote:
>>
>>>  Hi,
>>>
>>>  Have you seen the following before?
>>>
>>>  I have an expression like this:
>>>
>>>  paramsCount - (subtract--)
>>>
>>>  both being int variables.
>>>
>>>  Every time I hover over the selected expression (quick
>>>  evaluation), the result is incremented over and over again. Is
>>>  this by design. I would expect that expression being evaluated
>>>  to the same value, regardless what the subtract value becomes
>>>  later in my code.
>>>
>>>  Try this at home with NB 6.7 RC3.
>>>
>>>  Regards,

 « Return to Thread: [67cat][debugger] Expression evaluation issue?