void logDebugScript() {
		strbufLog.setLength(0);
		Logger.debug(statement[0].toString());
		for (int i = 1; i < statementLength; ++i) {
			strbufLog.append(statement[i] + "\n");
			Logger.debug(statement[i].toString());
		}
		strbufLog.append(statement[0].value.toString());
		for (int i = 1; i < statementLength; ++i) {
			strbufLog.append(' ');
			Token token = statement[i];
			switch (token.tok) {
			case Token.integer:
				strbufLog.append(token.intValue);
				continue;
			case Token.spec_seqcode:
				strbufLog.append(Group.getSeqcodeString(token.intValue));
				continue;
			case Token.spec_chain:
				strbufLog.append(':');
				strbufLog.append((char) token.intValue);
				continue;
			case Token.spec_alternate:
				strbufLog.append("%");
				strbufLog.append("" + token.value);
				break;
			case Token.spec_model:
				strbufLog.append("/");
				strbufLog.append("" + token.value);
				break;
			case Token.spec_resid:
				strbufLog.append('[');
				strbufLog.append(Group.getGroup3((short) token.intValue));
				strbufLog.append(']');
				continue;
			case Token.spec_name_pattern:
				strbufLog.append('[');
				strbufLog.append(token.value);
				strbufLog.append(']');
				continue;
			case Token.bitset:
				strbufLog.append(StateManager.escape((BitSet) token.value));
				continue;
			case Token.spec_atom:
				strbufLog.append('.');
				break;
			case Token.spec_seqcode_range:
				strbufLog.append(Group.getSeqcodeString(token.intValue));
				strbufLog.append('-');
				strbufLog.append(Group.getSeqcodeString(((Integer) token.value).intValue()));
				break;
			case Token.within:
				strbufLog.append("within ");
				break;
			case Token.connected:
				strbufLog.append("connected ");
				break;
			case Token.substructure:
				strbufLog.append("substructure ");
				break;
			case Token.cell:
				Point3f pt = (Point3f) token.value;
				strbufLog.append("cell={" + pt.x + " " + pt.y + " " + pt.z + "}");
				continue;
			case Token.string:
				strbufLog.append("\"" + token.value + "\"");
				continue;
			default:
				strbufLog.append(token.toString());
			}
			strbufLog.append("" + token.value);
		}
		viewer.scriptStatus(strbufLog.toString());
	}