• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Talks on adb - Day 1 (pdf version)
 

Talks on adb - Day 1 (pdf version)

on

  • 825 views

adb, debugging

adb, debugging

Statistics

Views

Total Views
825
Views on SlideShare
825
Embed Views
0

Actions

Likes
0
Downloads
17
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Talks on adb - Day 1 (pdf version) Talks on adb - Day 1 (pdf version) Presentation Transcript

    • Talks on adb Day 1 mariah@tmax.co.kr 2010.07
    • Debugger Java Debugging Android Debugging Tools adb (Day 2)
    • Debugger는 개발자들의 고민을 덜어주고 자유 시간을 보장한다.
    • Debugger의 작동 원리는 그리 어렵지 않다 Debug Symbol (PDB) Line table for Profiling for Dump Event Request Set Breakpoint Single Step Event Breakpoint hit Module loaded
    • Java에서의 Debugging이라고 크게 다르지도 않을 것이다 Debug Debug Symbol(class) Symbol(PDB) Line table Line table for Profiling for Profiling for Dump for Dump Event Request Event Request Set Breakpoint Set Breakpoint Single Step Single Step Event Event Breakpoint hit Breakpoint hit Class loaded DLL loaded
    • Java (Remote) Debugging: JPDA Components Debugger Interfaces JVMTI agent VM JNI ---------- Java VM Tool Interface javaagent (BCI) back-end JDWP command packet comm channel Java Debug Wire Protocol transport front-end JDI (com.sun.jdi) ---------- Java Debug Interface .connect UI .event .request Listener
    • javadt 데모 및 Set Breakpoint 시나리오
    • Java (Remote) Debugging: JPDA Debugger Debugging Server register SourceListener listen for a connection register DebugListener suspend TransportService - Socket - SharedMemory Attaches by socket to other VMs Agent on the target VM - Supports JDWP to com.sun.jdi. Gets a mirror of VM communicate with the debugger VirtualMachine start debugger loop (JDIEventSource thread) VM start ClassPrepareEvent for a class Classes loaded VirtualMachine #eventQueue() Resolve & Create Breakpoint Request SetBreakpoint(jvmtiEnv* env… JDWP.EventRequ (send packetstream) est.Set Agent Event Callbacks !View slide note BreakpointEvent for event log (resolve) breakpoint hit show it Request resume !Confer to debug-related objects
    • traceview DDMS Logcat jdwp