今王必欲致士 先従隗始 - little debugging principles

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    今王必欲致士 先従隗始 - little debugging principles - Presentation Transcript

    1. 2009 4 23
    2. 2009 4 23
    3. 2009 4 23
    4. 2009 4 23
    5. 2009 4 23
    6. 2009 4 23
    7. 2009 4 23
    8. 2009 4 23
    9. 2009 4 23
    10. 2009 4 23
    11. 2009 4 23
    12. 2009 4 23
    13. 2009 4 23
    14. 2009 4 23
    15. 2009 4 23
    16. 2009 4 23
    17. 2009 4 23
    18. 2009 4 23
    19. 2009 4 23
    20. 2009 4 23
    21. 2009 4 23
    22. 2009 4 23
    23. 2009 4 23
    24. 2009 4 23
    25. 2009 4 23
    26. 2009 4 23
    27. 2009 4 23
    28. 2009 4 23
    29. 2009 4 23
    30. 2009 4 23
    31. 2009 4 23
    32. 2009 4 23
    33. 2009 4 23
    34. 2009 4 23
    35. 2009 4 23
    36. 2009 4 23
    37. 2009 4 23
    38. 2009 4 23
    39. 2009 4 23
    40. 2009 4 23
    41. 2009 4 23
    42. 2009 4 23
    43. 2009 4 23
    44. 2009 4 23
    45. 2009 4 23
    46. 2009 4 23
    47. 2009 4 23
    48. 2009 4 23
    49. 2009 4 23
    50. 2009 4 23
    51. 2009 4 23
    52. 2009 4 23
    53. 2009 4 23
    54. 2009 4 23
    55. describe MailingList, '#create_message_for' do fixtures :mailing_lists before do @email = stub(:email) @message = stub(:message) end # ... it \"returns nil if the resolver can't resolve the email as a message for the list\" do @resolver.stub!(:resolve).and_return(nil) @ml.create_message_for(@email).should be_nil end end 2009 4 23
    56. 2009 4 23
    57. 2009 4 23
    58. 2009 4 23
    59. 2009 4 23
    60. 2009 4 23
    61. 2009 4 23
    62. 2009 4 23
    63. 2009 4 23
    64. 2009 4 23
    65. 2009 4 23
    66. 2009 4 23
    67. 2009 4 23
    68. 2009 4 23
    69. 2009 4 23
    70. 2009 4 23
    71. 2009 4 23
    72. 2009 4 23
    73. 2009 4 23
    74. 2009 4 23
    75. 2009 4 23
    76. #define ARY_SET_LEN(ary, n) do { \\ if (ARY_EMBED_P(ary)) { \\ ARY_SET_EMBED_LEN(ary, n); \\ }\\ else { \\ ARY_SET_HEAP_LEN(ary, n); \\ }\\ assert(RARRAY_LEN(ary) == n); \\ } while (0) 2009 4 23
    77. #define ARY_SET_HEAP_LEN(ary, n) do { \\ assert(!ARY_EMBED_P(ary)); \\ RARRAY(ary)->as.heap.len = n; \\ } while (0) 2009 4 23
    78. 2009 4 23
    79. 2009 4 23
    80. 2009 4 23
    81. 2009 4 23
    82. 2009 4 23
    83. 2009 4 23
    84. 2009 4 23
    85. 2009 4 23
    86. 2009 4 23
    87. 2009 4 23
    88. 2009 4 23
    89. 2009 4 23
    90. 2009 4 23
    91. 2009 4 23
    92. 2009 4 23
    93. 2009 4 23
    94. 2009 4 23
    95. 2009 4 23
    96. 2009 4 23
    97. 2009 4 23
    98. 2009 4 23
    99. 2009 4 23
    100. 2009 4 23
    101. define rb_classname call classname($arg0) rb_p $ print *(struct RClass*)$arg0 end # .gdbinit 2009 4 23
    102. 2009 4 23
    103. 2009 4 23
    104. 2009 4 23
    105. 2009 4 23
    106. 2009 4 23

    + Yuki SonodaYuki Sonoda, 6 months ago

    custom

    765 views, 0 favs, 3 embeds more stats

    at Debug hacks conference 2009

    More info about this document

    CC Attribution License

    Go to text version

    • Total Views 765
      • 598 on SlideShare
      • 167 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 2
    Most viewed embeds
    • 101 views on http://idm.s9.xrea.com
    • 65 views on http://yugui.jp
    • 1 views on http://72.14.235.132

    more

    All embeds
    • 101 views on http://idm.s9.xrea.com
    • 65 views on http://yugui.jp
    • 1 views on http://72.14.235.132

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories