Upgrade to Pro — share decks privately, control downloads, hide ads and more …

LLDB + chisel = ∞

LLDB + chisel = ∞

yidev東京第二回の発表内容です。
デモ動画 => https://www.youtube.com/watch?v=5NdfK33pEH8

Toshihiro Morimoto

April 26, 2014
Tweet

More Decks by Toshihiro Morimoto

Other Decks in Technology

Transcript

  1. LLDB ͕σϑΥϧτͷ Debugger ͱͳΓ·͕ͨ͠ OS X 10.8.4 Ͱ Xcode ͔ΒΞϓϦέʔγϣϯΛ

    iOS Simulator Ͱ࣮ߦͨ͠ͱ͖ʹ SIGABRT Ͱ ΞϓϦ͕ىಈͤͣʹ crash ͢Δ (※Xcode 4.6.3 Ͱमਖ਼͞Ε·ͨ͠)
  2. NSDate Λ NSString ʹม׵ͯ͠දࣔ (lldb) pd [NSDate] ! command regex

    pd 's/^(.+)$/po [[NSString alloc] initWithData: %1 encoding:4]/'
  3. CALayer ͷ Animation ଎౓ͷมߋ (lldb) pa 0.4 # slow (lldb)

    pa 1 # normal ! command regex pa 's/^(.+)$/p [(CALayer *)[[[[UIApplication sharedApplication] windows] objectAtIndex: 0] layer] setSpeed:%1]/'
  4. chisel - version 1.1.0 • Python Ͱॻ͔Ε͍ͯ·͢ • LLDB ༻ͷ

    Debug ʹ໾ཱͭίϚϯυू • ࣮ػͰ΋࢖͑Δ • ֤ʑͷ։ൃ؀ڥͰઃఆͯ͠Ε͹͍͍