The run down A bit of history Mobile debugging Remote debugging Who Am I? Senior Developer @ Seek Developer on Modernizr Stalk Me: Twitter: @ryanseddon Blog: thecssninja.com Github: github.com/ryanseddon
Hermes definition in Wikipedia: "Hermes is the great messenger of the gods in Greek mythology and a guide to the Underworld" Hermes will log all the messages for you. Defer or send your logs immediately. Different defined message types: DISRUPTOR ALL DEBUG INFO TRACE WARNING ERROR FATAL And if you have some error you can add (or add it by the system if it's an uncaugh error) info about the file (f
node.jsでconsole.logとかしてもenumerableがfalseなプロパティは見れない。 var o = Object.create(null, { foo: { value: 'bar', enumerable: false }, }); console.log(o.foo); // => bar console.log(o); // => {} o.fooはあるのにoをconsole.logしても空に見える。これを見えるようにするにはutil.inspectを使う。 var util = require('util'); ... console.log( util.inspect(o, true) ); // { [foo]: 'bar' } 第二引数でenumerableがfalseのプロパティを見るかどうかを決める。デフォルトがfalseなので明示的にtrueを指定
Note: weinre has 'graduated' from the prototype described in this paper to an open source project currently available at Apache. 2011-01-31 - added note above about code at Github (no longer there) 2010-04-27 - initial write-up what is weinre? weinre (WEb INspector REmote) is an experiment I undertook in early 2010 to run the existing Web Inspector debug client as a plain old web page (the debug c
5つのツールを紹介し、weinreを一押ししていますが、他のツールが劣っていると言っているのではないのでお間違えなく...。 (口頭では説明したのですが、スライドには書いていないので念のため...。) リモートデバッグの前準備を理解してしまえば、使い方はFirebugやブラウザの開発ツールとほぼ一緒なので、是非試してみてください。 Operaのリモートデバッグ環境のDragonflyもありますし、Webkitでもリモートデバッグができるようになるらしいですが、ブラウザ側がXMLHttpRequestに対応していれば、同じ環境で作業ができるのがweinreの利点ではないでしょうか。 (ブラウザのネイティブなリモートデバッグが、共通のAPIを持つのが理想かもしれませんね。)
node.jsで任意のオブジェクトが持っているメソッドを確認するには、console.log(util.inspect(object, showHidden=false, depth=2));の形式でutil.inspectを使用します。showHiddenの値をtrueにした場合は、non-enumerableなプロパティも出力されるようになります。 実用的な使いどころとしては、組み込みのメソッドを確認したい場合に以下のように書くかんじでしょうか。var util = require('util'); console.log(util.inspect({}.__proto__, true, null));
こんにちは、寝過ごして長野まで行きそうになったソーシャルクライアント開発のtakimoこと瀧本です。 先週弊社数名がアメリカで行われていたVelocity 2011 - O'Reilly Conferencesに参加しました。 そこではモバイル端末のテストやパフォーマンスについての講演やLTがあったようです。 自分もお土産話を色々聞きたいので詳しくは誰かが書いてくれるはず...です。 その中で気になったプロダクトがあったので紹介したいと思います。 weinre - Web Inspector Remote weinreはFirebug(Firefox)やWebKitのWebInspectorのようなデバッグ機能をリモートで提供してくれるプロダクトです。 iPhoneやAndroid(2.1以上)には一応コンソール機能のようなものがありますが 基本的には出力だけ ソフトキーボードでデバッグ用
Love JavaScript? Can't get enough of it? Ever sit on the plane and wish you could just test a bit of code? JS Console of the iOS gives you just that. A JavaScript console to test and inspect the results of your JavaScript without the need to be online or in a browser. Run any JavaScript straight in the console Test mobile JavaScript features like geolocation Load any URL's DOM tree Load external
pixelJET is an online IDE for front end web developers, written with the Google Web Toolkit. It's modelled after the front end developer tools you already use in your browser, but with one huge difference: it saves your changes back to your source code. You don't need to refresh your page, change windows, or manually save and upload your files. You can also develop with two monitors; just like on
Google Chrome 10.0.648.204で確認 方法1: Error#stackプロパティから取得 (ただし文字列形式なのでパースが必要) スタックトレースの出力形式 例外クラス名※1: メッセージ※2 at 例外が発生したメソッド名※3 (メソッドが呼び出されたファイル名:行番号※4:位置※5)※6 at 例外が発生したファイル名:行番号※4:位置※5※注釈 [1]例外クラス名 Error#nameプロパティの値 [2]メッセージ Error#messageプロパティの値 [3](省略) コンストラクタの場合、"new メソッド名"となる [4]行番号 例外が発生したメソッド/コンストラクタの行番号(1〜) [5]位置 例外が発生したメソッド/コンストラクタの最初の1文字の位置(1〜) [6](省略) この行はネストしているメソッドの数だけ増える (0行〜)// スタックトレ
Firebug の console.log() って JavaScript のデバッグ時にはすごく威力を発揮するのですが、Firebug を閉じている時や他のブラウザをチェックする段になると console is undefined のエラーが出て、鬱陶しいですよネ? 次の様にすれば回避できますが、全ての箇所に if (...) を付けるのもイマイチです。 if (typeof window.console != 'undefined') { console.log(a); console.trace(b); ... } ということで、つまらない Tips を2つほど。 1.Firebug lite をインクルードする Firebug lite は IE6+、Firefox、Opera、Safari、Chrome で Firebug の簡易版を使えるようにするためのものです。クロス・ブラウ
Microsoft Developer Blogs Get the latest information, insights, and news from Microsoft. AI agents are quickly moving from experiments to production‑critical components of modern applications. But while many teams know how to build agents, far fewer are confident they’re hosting them on the right foundation. Most organizations start by deploying agents the same way... We're shipping two major capa
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く