# workbench: how to see values of global variables during debugging

Consdier the following package

BeginPackage["packageName"];
exportedFunction::usage = "...";
Begin["Private"];
globalVariable = Null;
initializePackage[args___] := (globalVariable = workOn1[args]);
exportedFunction[args___] :=
Block[{localVariable},
If[globalVariable===Null, Abort[]];
localVariable = workOn2[globalVariable, args];
workOn3[localVariable]
];
workOn1[args___] := ...;
workOn2[gv_, args___] := ...;
workOn3[lv_] := ...;
End[];
EndPackage[];

and assume that is being debugged in a workbench session, and that a break point has been set somewhere in exportedFunction. The debugger reports on the values of localVariable, but I can never see the value of globalVariable. Is there a way to inspect the value of globalVariable as well?

-
closely related: Inspecting non-variable state from a breakpoint in Workbench – WReach Mar 26 '14 at 13:17
@WReach: I think, though I might be wrong, that this post is not closely related to the example you linked. In the exapmpel that you are pointing to the variable (a) is local. I am asking specifically about global variables. Did I missunderstood something? – zorank Mar 31 '14 at 18:36
OK, I've added an answer to explain more fully. – WReach Apr 1 '14 at 13:42