How to log the line in which the error/exception occurred?

Discussion in 'Ruby' started by Iñaki Baz Castillo, Jul 21, 2008.

  1. SGksIEkgbG9nIGVycm9ycy9leGNlcHRpb24gaW50byBhIFRocmVhZCBpbiB0aGlzIHdheToKCiAg
    ICAgICAgICAgICAgICAgICAgICAgVGhyZWFkLm5ldyB7CsKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
    oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqBiZWdpbgrCoMKgwqDCoMKg
    wqDCoMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgTG9n
    aWM6OnByb2Nlc3MoZGF0YSkKwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
    oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoHJlc2N1ZSA9PiBlCsKgwqDCoMKgwqDCoMKgwqDCoMKg
    wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
    oMKgcHV0cyAiI3tlLmNsYXNzfTogI3skIX0iCsKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
    oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqBlbmQKwqAgwqAgwqAgwqAgwqAgwqAg
    wqAgwqAgwqAgwqAgwqAgwqAgfQoKYnV0IGl0IGRvZXNuJ3Qgc2hvdyBpbiB3aGljaCBmaWxlIGFu
    ZCBsaW5lIHRoZSBwcm9ibGVtIG9jY3VycywgaG93IHRvIHNob3cgaXQ/CgpUaGFua3MgYSBsb3Qu
    CgotLSAKScOxYWtpIEJheiBDYXN0aWxsbwo=
     
    Iñaki Baz Castillo, Jul 21, 2008
    #1
    1. Advertising

  2. Re: How to log the line in which the error/exception occurred?[SOLVED]

    RWwgTHVuZXMsIDIxIGRlIE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8K
     
    Iñaki Baz Castillo, Jul 21, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lars-Erik Aabech
    Replies:
    7
    Views:
    75,626
    surferjoe
    May 19, 2009
  2. Replies:
    8
    Views:
    46,771
    fedceel
    Jan 16, 2011
  3. Replies:
    0
    Views:
    418
  4. Elmo Watson
    Replies:
    0
    Views:
    766
    Elmo Watson
    Jun 14, 2007
  5. Bill Youngman
    Replies:
    1
    Views:
    208
    Bill Youngman
    Oct 11, 2005
Loading...

Share This Page