Chrome Logger

安装好Chrome Logger的Chrome扩展,并在服务器端安装对应语言(目前支持Ruby, PHP, Python, Node.js, .NET)的Chrome Logger库后,就可以在服务器端用类似console.(variable)的语句log变量,然后在Chrome Dev Tools上查看变量的实际值

Django为例, 配置十分简单:

# django middleware
MIDDLEWARE_CLASSES = (
    'chromelogger.DjangoMiddleware'
)

# views
import chromelogger as console
console.log('Hello console!')
console.get_header()

gif 演示:

chrome-logger1

chrome-logger2

Project Homepage