The Difference

  • in the console = 在控制台环境内(执行操作)
  • on the console = 在控制台屏幕上(显示内容)

Usage Guide

In the Console (Most Common)

Use: When executing operations inside the console environment

Examples:

  • ✅ “Run the command in the console.” (在控制台里运行)
  • ✅ “Type the code in the console.” (在控制台里输入)
  • ✅ “Debug in the browser console.” (在浏览器控制台里调试)
  • ✅ “Execute the script in the console.” (在控制台里执行脚本)

On the Console

Use: When something is displayed on the console screen/surface

Examples:

  • ✅ “The error message appeared on the console.” (错误显示在控制台屏幕上)
  • ✅ “The output shows on the console.” (输出显示在控制台上)

Quick Reference

ContextPrepositionExample
Execute/inputin the console“Run it in the console” ✅
Display/outputon the console“Shows on the console” ✅

Common Mistakes

❌ Less Natural✅ More NaturalNote
Run it on the consoleRun it in the console技术操作用 in
Type on the consoleType in the console输入操作用 in

Memory Trick

  • in the console → 在控制台做操作 (environment)
  • on the console → 在控制台屏幕上显示 (surface)

Practice

Choose the correct preposition:

  1. “Check the error log ___ the console.”
  2. “The results show ___ the console screen.”
  3. “Execute the command ___ the console.”
  4. “I saw the warning ___ the console.”

Answers:

  1. in (checking is an action)
  2. on (displaying)
  3. in (executing is an action)
  4. on (saw something displayed)