@Override
	public String toString() {
		StringBuilder buffer = new StringBuilder();
		DWARFTag tag = getTag();
		int tagNum = tag != null ? tag.getId() : 0;
		int abbrNum = abbreviation != null ? abbreviation.getAbbreviationCode() : 0;
		int childCount = getProgram().getDIEChildIndexes(dieIndex).size();

		buffer.append("<%d><%x>: %s [abbrev %d, tag %d, index %d, children %d]\n".formatted(
			getDepth(), offset, tag, abbrNum, tagNum, dieIndex, childCount));

		if (isTerminator()) {
			return buffer.toString();
		}

		for (int i = 0; i < attributes.length; i++) {
			buffer.append("\t\t");
			DWARFAttributeValue attribVal = getAttributeValueUnchecked(i);
			buffer.append(attribVal != null ? attribVal.toString(compilationUnit) : "-missing-");
			buffer.append("\n");
		}

		return buffer.toString();
	}
Returns the ordinal position of this DIE record in its parent's list of children.

@return index of ourself in our parent, or -1 if root DIE
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/DebugInfoEntry.java