debugger and auto watches for variables

Hi,

I want to find out if there is a way to stop the debugger from adding auto watches for variables.

It seems that the debugger will evaluate some used variable in the current stack to give you a quick view of them. The issue is that evaluating these variable causes side effects that changes the behavior of the application.

Regards Jaco

2 comments
Comment actions Permalink

I want to find out if there is a way to stop the debugger from adding auto watches for variables.


If you mean you don't want debugger to evaluate any methods when rendering data, you can do this by switching off "Alternate view
for Collections classes" and "toString() view" options. See Settings | Debugger | General.
These settings are also available from the "customize views" context menu in Variables view.
Also make sure your custom data renderers do not call any methods.

All auto-watches that debugger adds, do not have any side-effects (otherwise the watch won't be added)

--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

"jaco" <no_reply@jetbrains.com> wrote in message news:3120022.1201344365318.JavaMail.itn@is.intellij.net...

Hi,

>

I want to find out if there is a way to stop the debugger from adding auto watches for variables.

>

It seems that the debugger will evaluate some used variable in the current stack to give you a quick view of them. The issue is
that evaluating these variable causes side effects that changes the behavior of the application.

>

Regards Jaco



0
Comment actions Permalink

Hi Eugene,

Thanks for the answer.

My settings is as you have advised, but I def. still see different behaviour when using the debugger. I will try and get a test case or something together to demonstrate.

Regards Jaco

0

Please sign in to leave a comment.