See Local Variable at breakpoint within MODULE?

Within the debugger, can we watch local variables within a Module?

As the screenshot shows, the “i” only display its global value (12) upon a message breakpoint. Is there a way to show its local value?

Clear[i];


i = 12; f[] := Module[{i}, For[i = 1, i < 10, i++, Print[i]; Print[":\t"]; Print[i/0]]; ];

f[]

Jimmy

-
Hummm... I would say that Mathematica debugger is not a good option for debug. I hope that the new Wolfram Language could came with a new Wolfram Debugger. :p –  Murta Jan 4 '14 at 20:14
It is not showing the local value because it is not really i within the module - it's some temporary variable. –  VF1 Jan 4 '14 at 20:17
@vf1: Do you know how to get the actual name of the temporary variable so we can watch them, like in Visual studio? –  JimmyLin Jan 4 '14 at 20:18
@Murta: link, user Szabolcs metioned that the debugger is "immensely helpful" because it can watch local variable. Any idea on how he achieved that? –  JimmyLin Jan 4 '14 at 20:19
@Murta: the previous link was wrong, please see this –  JimmyLin Jan 4 '14 at 20:22

Edit

I figured it out - never used the debugger in MMA before so that's why I improvised. The Stack window has a "Local variables" tab - just open that: