Re: Debugging Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg94706] Re: Debugging Mathematica
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Sun, 21 Dec 2008 05:51:31 -0500 (EST)
- References: <gig3ms$2fg$1@smc.vnet.net>
Hi,
during development one uses *small* data and not 5*10^5 reals
that longer the turn around time.
And Print[] is in the most cases fine.
Regards
Jens
Nikolaus Rath wrote:
> Hello,
>
> I have trouble debugging a function that I wrote. The function is of the =
> form
>
> f[x_,y_] := Module[{a,b}, ...]
>
> I am able to set a breakpoint in the function and Mathematica
> correctly stops execution.
>
> However, now I want to inspect the state of some local variables.
> Unfortunately some of them have very large contents (~500 000 reals),
> so when I open the stack and try to expand the "Local Variables" cell,
> the frontend just hangs.
>
> Is there a way to *selectively* display some of the local variables?
> What I would like most is to be able to execute code in the current
> stack frame, e.g. if I could simply evaluate a[[1]] in some notebook
> to get the first element of the local variable a. Is that possible?
>
> I am using Mathematica 7.
>
> Best,
>
> -Nikolaus
>
> --
> =C2=BBIt is not worth an intelligent man's time to be in the majority.
> By definition, there are already enough people to do that.=C2=AB
> -J.H. Hardy
>
> PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C
>