// Raw direct call to Player public static void doShowVariable(DebugCLI cli) { cli.waitTilHalted(); try { // an integer followed by a variable name Session session = cli.Session; int id = cli.nextIntToken(); String name = (cli.hasMoreTokens())?cli.nextToken():null; System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append(name); sb.Append(" = "); //$NON-NLS-1$ Value v = ((PlayerSession)session).getValue(id, name); ExpressionCache.appendVariableValue(sb, v); cli.output(sb.ToString()); } catch (NullReferenceException) { cli.err(LocalizationManager.getLocalizedTextString("key26")); //$NON-NLS-1$ } }