debugger: refactor inspect_repl to use primordials
#38551
+316
−251
Closed