The second line below produces the errors shown:
p = LogLogPlot[Abs[10^2/((I \[Omega]ω)^2 + 100)], {\[Omega]ω, 10^0, 10^5}]; p /. x_ /; And @@ NumericQ /@ x :> x[[0]]; Part::pspec: Part specification True is neither a machine-sized integer nor a list of machine-sized integers. >> Part::pspec: Part specification True is neither a machine-sized integer nor a list of machine-sized integers. >> I have run out of ideas for pinpointing the specific reason for the error (let alone fixing the rule to avoid it).
Is there some command or tool or systematic way to debugging such errors?