るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.011秒)
トップページ > バージョン:2.5.0[x] > クエリ:debug[x] > クラス:Net::POP3[x]

別のキーワード

  1. logger debug
  2. logger debug?
  3. socket so_debug
  4. socket iff_debug
  5. syslog debug

ライブラリ

検索結果

Net::POP3#set_debug_output(f) -> () (18325.0)

デバッグ用の出力 f をセットします。

...さい。

f は << メソッドを持っているオブジェクトでなければなりません。

使用例:

require 'net/pop'

pop = Net::POP3.new('pop.example.com', 110)
pop.set_debug_output $stderr
pop.start('YourAccount', 'YourPassword') {
p pop.n_bytes
}

実行結果:

PO...