You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
本日、同僚からよくわからんエラーがあるので、ちょっと見て欲しいと言われ、その際に使ったテクニックの共有を。 なお、エラーが発生していたのはNode.jsで書かれたコードです。 使ったモノ コレ github.com 同様のライブラリとして、 https://github.com/tlrobinson/long-stack-traces とかもありますが、longjohnの方がメンテされている模様。 例 long-stack-tracesのサイトに記述されている例ですが、 どっちのsetTimeoutが先に呼ばれるでしょうか? longjohnがないとき〜 'use strict'; function f() { throw new Error('foo'); } setTimeout(f, Math.random() * 1000); setTimeout(f, Math.random()
28.12. inspect — 使用中オブジェクトの情報を取得する¶ バージョン 2.1 で追加. inspect は、モジュール・クラス・メソッド・関数・トレースバック・フレームオブジェクト・コードオブジェクトなどのオブジェクトから情報を取得 する関数を定義しており、クラスの内容を調べる、メソッドのソースコードを取得する、関数の引数リストを取得して整形する、トレースバックから必要な情報 だけを取得して表示する、などの処理を行う場合に利用します。 このモジュールの機能は、型チェック・ソースコードの取得・クラス/関数から情報を取得・インタープリタのスタック情報の調査、の4種類に分類する事ができます。 28.12.1. 型とメンバ¶ getmembers() は、クラスやモジュールなどのオブジェクトからメンバを取得します。名前が”is”で始まる 16 個の関数は、 getmembers()
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く