After discussing this in the comments, I realized that Rider’s debugger naturally steps into external code if you keep stepping past the end of your method. The way to avoid this is to just continue execution (F5). Thanks to @derHugo for the insight!