Debugging Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg94654] Debugging Mathematica
- From: Nikolaus Rath <Nikolaus at rath.org>
- Date: Fri, 19 Dec 2008 07:23:01 -0500 (EST)
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