Perhaps these general remarks will be of some interest:
It is true that deciding for a given function whether or not Riemann’s integral exists, using only the limit definition, is not easy. For this reason, Riemann himself gave a necessary and sufficient condition for the integral to exist in the same paper where he first gave the definition of the integral. That paper is “On the representation of function by a trigonometric series”, his 1854 habilitation thesis, and the discussion of the integral is in paragraphs 4 and 5 under the heading “On the concept of a definite integral and the range of its validity”. This second part, on the range of validity of the definition, seems to have been mostly ignored by later readers, except for Lebesgue, who published (50 years later) an equivalent condition. Lebesgue is mostly now credited for it, although any analysis student can easily deduce Lebesgue’s criterion from that of Riemann.
The condition of Riemann is based on the notion of “oscillation” of a function at a point p, which is a measure of the discontinuity of f at p. Given a bounded function f defined near p, and an open interval I containing p, look at the smallest interval J which contains all values f takes on I. The oscillation of f at p is the limiting length of J as the length of I approaches zero. E.g. the function f(x) = x/|x| for x≠0 and f(0) = 0, has oscillation 2 at p=0, as does the function f(x) = sin(1/x) for x≠0 and f(0) = 0. A function f is continuous at p if and only if the oscillation of f at p is zero.
A set S has “content zero” if and only if, for every e>0, S can be covered by a finite union of intervals of total length less than e. (The intervals may be taken either closed or open, since if we cover a set by closed intervals of total length e/2, then doubling these intervals covers the set by open intervals of total length e.) Then Riemann’s criterion is this: A bounded function f on a bounded interval is integrable if and only if: for every d>0, the set S of points where f has oscillation at least d, has content zero.
Lebesgue’s criterion is this: a set S has measure zero if and only if for every e>0, the set S can be covered by an infinite sequence of intervals of total length less than e. Then a bounded function f on a bounded interval, is (Riemann) integrable if and only if, the set S where f is discontinuous, has measure zero.
Since a compact set of measure zero also has content zero, and a countable union of sets of content zero has measure zero, Lebegue’s criterion follows easily from Riemann’s, and vice versa. (In fact Mike Spivak, in his little book Calculus on Manifolds, p.53, states the criterion in Lebesgue's form, but uses the Riemann approach involving the concept of oscillation, to prove it.)
It follows of course instantly that continuous functions, as well as functions with only a countable number of discontinuities, e.g. piecewise monotone functions, are Riemann Integrable on closed bounded intervals. The last case was already proved by Newton!
The connection between oscillation and (Darboux) integrability is clear since any two rectangles whose bases contain p in the interior, one above and one below the graph of f near p, must have heights differing at least by the oscillation. Thus the total length of the bases of rectangles containing points with positive oscillation (at least in their interior), must approach zero if f is to be integrable.
Of course it is still a good exercise to show that a given function satisfies Riemann's (or Darboux's) definition. Newton's result, that all monotone (hence also piecewise monotone) functions are integrable, is the easiest, and should probably be the one presented in most calculus classes. You might try it.
edit: For the first time, I have just now read some of Lebesgue's 1904 treatise "Lecons sur l'integration" concerning this topic (see e.g. pp. 23-27, Conditions of integrability).
https://quod.lib.umich.edu/u/umhistmath/acm0062.0001.001/28?rgn=full+text;view=pdf
His discussion is very thorough and apparently precise, at least to someone good at reading French (not me). He discusses in detail the concept of oscillation, and gives Riemann's criterion, but ascribes the version I gave above instead to duBois Reymond. There is apparently a subtle distinction between oscillation at a point and ("mean")? oscillation over an interval, which I blurred together in reading Riemann. So Lebesgue considers there to be at least 3 versions of the criterion, which all seem essentially identical to me, since they easiy follow from one another. Indeed Lebesgue states explicitly that Riemann's own criterion fails to make clear the relation between integrability and sets of discontinuities, which I thought was quite easily deduced from Riemann's discussion.
Since Lebesgue is a master of the topic, I suggest that whatever he says is correct, and that I may have taken some things for granted unjustifiably. Still Spivak's treatment makes all these relations clear and proceeds exactly as I have understood them from reading Riemann. So I might say that even if Riemann's statement does not say precisely what I thought it did, nonetheless after reading it, I understood exactly what Lebesgue claims is due to duBois Reymond and himself. And I tend to give people credit for any ideas that arise immediately in my mind after reading their exposition, even if it slightly extends what they said. In particular, although Lebegue and duBois Reymond may have given slightly different criteria, they apparently drew almost entirely upon Riemann's ideas, and I myself was able to use those ideas to prove their statements without having read their treatments, so I give primary credit to Riemann. But probably I should also credit people who clarify ideas as well as those who generate them, since they too serve the rest of us well in our attempt to use the ideas.