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

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

by Claudiu Bulcu :: Rate this Message:

Reply to Author | View in Thread

Hi Jirka,

You have the zip file.

I've also opened an issue here: http://www.netbeans.org/issues/show_bug.cgi?id=167266

But there you'll find the issue as "wontfix", and the reason of it, which I don't agree upon. I agree with Eric, instead.

On Thu, Jun 18, 2009 at 10:26 AM, Jiri Kovalsky <Jiri.Kovalsky@...> wrote:
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,



--
Claudiu Bulcu
Software Developer

"A wise person will listen and take in more instruction, and a man of understanding is the one who acquires skillful direction"

http://udy.smugmug.com
www.bulcu.ro


JavaApplication1.zip (15K) Download Attachment

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