Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Dialogs and inheritance

  • To: mathgroup at
  • Subject: [mg76460] Re: Dialogs and inheritance
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at>
  • Date: Wed, 23 May 2007 05:00:51 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <f2u3c3$j45$>

alexxx.magni at wrote:
> Hello,
> I'm trying to learn to use Dialogs for debugging purposes - since I
> cannot learn the right way to use the integrated debugger.
> Can you please tell me what is wrong in the following???
> In[1]:= Module[{a},
>  Do[
>      a = {i, Sin[i]};
>      Dialog[],
>   {i, 100}]]
> (Dialog) In[2]:= i
> (Dialog) Out[2]= 1
> (Dialog) In[3]:= a
> (Dialog) Out[3]= a
> I thought under Dialog I could be able to see all the local values of
> the variables!
> P.S. any hint on where to start with the integrated debugger? The V6
> guide: guide/TuningAndDebugging is rather limited...
> thanks!
> Alessandro Magni

Hi Alex,

You can capture of the value of a by including it in the Dialog expression.

In[1]:= Module[{a}, Do[a = {i, Sin[i]}; Dialog[a], {i, 3}]]

Out[2]= {1, Sin[1]}

Out[2]= {2, Sin[2]}

Out[2]= {3, Sin[3]}

(Dialog) In[3]:= Return[]

(Dialog) In[3]:= Return[]

(Dialog) In[3]:= Return[]


  • Prev by Date: Re: Re: Mathematica 6 review [first impressions]
  • Next by Date: Re: Re: Simplify (-1)^((-1)^n)
  • Previous by thread: Re: Dialogs and inheritance
  • Next by thread: Re: Dialogs and inheritance