B6755: Variable view has side effects

When running a debug session and the variables view is showing the filtered version
(ie. those variables that are of interest), some displayed variables are actually
expressions that get evaluated and have side effects, so for example if I have the
following code snippet:


The variable display shows 'i++' as the expression, but it seems to be modifying
the value of i in the process...

This does not happen when all variables are shown.

Anyone else seeing this? Is this a known problem or should I file a Jira issue?


Cheers,

Bonny

3 comments
Comment actions Permalink

why don't you just write

buf ? instead of i++.

0
Comment actions Permalink

On 2007-03-14 09:16:25 +0300, Bonny Rais <bonnyr@optushome.com.au> said:

When running a debug session and the variables view is showing the
filtered version
(ie. those variables that are of interest), some displayed variables
are actually
expressions that get evaluated and have side effects, so for example if
I have the
following code snippet:

  ...
>  buf[i++] = val;
> ..
> ]]>


The variable display shows 'i++' as the expression, but it seems to be
modifying
the value of i in the process...

This does not happen when all variables are shown.

Anyone else seeing this? Is this a known problem or should I file a Jira issue?


Cheers,

Bonny


Looks like a blocker issue. Would you please file?

0
Comment actions Permalink

Hello Maxim,

>> When running a debug session and the variables view is showing the
>> filtered version
>> (ie. those variables that are of interest), some displayed variables
>> are actually
>> expressions that get evaluated and have side effects, so for example
>> if
>> I have the
>> following code snippet:
>>

> ...
>> buf[i++] = val;
>> ..
>> ]]>

>> The variable display shows 'i++' as the expression, but it seems to
>> be
>> modifying
>> the value of i in the process...
>> This does not happen when all variables are shown.
>>
>> Anyone else seeing this? Is this a known problem or should I file a
>> Jira issue?

Looks like a blocker issue. Would you please file?


It's filed already: http://jetbrains.net/jira/browse/IDEA-11693

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.