TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Server side logging to Chrome console from PHP and Python

63 pointsby J2triplezeroabout 12 years ago

11 comments

bsimpsonabout 12 years ago
Another excellent option, if you'd rather not have to use Chrome dev tools:<p><a href="https://github.com/mgood/flask-debugtoolbar" rel="nofollow">https://github.com/mgood/flask-debugtoolbar</a><p>It will include a fixed positioned panel on your page including a bunch of server-side inspection, including request vars, environ variables, and logs. It works with Flask, and there's a version for Django as well.
j_sabout 12 years ago
<a href="http://getglimpse.com/" rel="nofollow">http://getglimpse.com/</a><p><pre><code> &#62; Glimpse gathers and presents detailed diagnostic information about the &#62; behavior and execution of your web application. &#62; It is used in a similar manner to client side diagnostics and debugging &#62; tools (such as FireBug or Chrome Developer Tools), but instead focuses on &#62; concepts such as server configuration, model binding, url routing, and &#62; execution profiling. </code></pre> Currently implemented for .NET; it has a pretty shiny cross-browser UI which might be useful as a target instead of the Chrome console.
评论 #5531521 未加载
toddmoreyabout 12 years ago
This is fantastic. There have been a few times where I've thought to myself it would be handy to have a view of server-side events in the inspector. Very eager to spend some time later today to get this set up.
Mahnabout 12 years ago
Happy to see this here, been using ChromePHP for quite some time now. The <i>only</i> complain I have is how it lacks support for styled logs[1], since it could come handy to apply different colors to different segments of the logs when they start to build up, but otherwise I'm a fan.<p>[1] <a href="https://plus.google.com/+AddyOsmani/posts/TanDFKEN9Kn" rel="nofollow">https://plus.google.com/+AddyOsmani/posts/TanDFKEN9Kn</a>
评论 #5521750 未加载
pindiabout 12 years ago
You may want to mention that the Python library is not thread-safe, since it essentially uses a global variable to store the logged statements until the middleware writes them to the response. Shouldn't be a problem when used with a development server, though.
评论 #5521764 未加载
whichdanabout 12 years ago
I've been using this with ChromePhp and it works fantastically well. It sends all of the data as part of the page's header, so you don't have to worry about something hacky like injected console.log calls.
thebuccaneerabout 12 years ago
Isn't this a bit like FirePHP (except FirePHP has more browser support) ?
评论 #5521245 未加载
ericcholisabout 12 years ago
Very useful if you don't want to or can't use xdebug for PHP.
评论 #5521211 未加载
addandsubtractabout 12 years ago
Have been using this for a while debugging PHP. Amazingly useful.
评论 #5519527 未加载
karolisdabout 12 years ago
Is there anything like this for Ruby?
评论 #5520009 未加载
评论 #5520005 未加载
评论 #5523627 未加载
coolsunglassesabout 12 years ago
I wonder how hard it would be to use the reflect package to make this work in Go?
评论 #5531739 未加载