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

Apex Replay Debuggerを試してみた

50fc0fdc2327ecbe7350645812de52e3?s=47 Shingo Yamazaki
October 30, 2018
3.4k

Apex Replay Debuggerを試してみた

Tokyo Salesforce Developer Group Meetup #19 のLT資料です。

50fc0fdc2327ecbe7350645812de52e3?s=128

Shingo Yamazaki

October 30, 2018
Tweet

Transcript

  1. Apex Replay Debugger Λࢼͯ͠Έͨ 2018-10-30 Tokyo Salesforce Developers Group Meetup

    #19
  2. ࣗݾ঺հ ࢁ㟒ɹਅޗ
 
 גࣜձࣾνʔϜεϐϦοτ
 ϓϩμΫτϚωʔδϟʔ Twitter: zaki___yama
 
 Blog: http://dackdive.hateblo.jp/

  3. IUUQTSFMFBTFOPUFTEPDTTBMFTGPSDFDPNKBKQXJOUFSSFMFBTFOPUFTSO@WTDPEF@SFQMBZ@EFCVHHFSIUN

  4. Apex Replay Debugger ͱ͸ • VSCode ͷ֦ுػೳ • Apex ͷσόοάϩάϑΝΠϧ͔Βɺϩάग़ྗ

    ࣌ͷ Apex ͷ࣮ߦΛ࠶ݱ (Replay) Ͱ͖Δ • →VSCode ্Ͱ Apex Λεςοϓ࣮ߦͨ͠Γ Breakpoint Λஔ͍ͨΓͰ͖Δ
  5. ࣄલ४උ • Salesforce CLI ΛΠϯετʔϧ • VSCode ͷ Salesforce ֦ுػೳΛΠϯετʔϧ

    • https://marketplace.visualstudio.com/items? itemName=salesforce.salesforcedx-vscode • VSCode ͷઃఆͷͨΊ .vscode/launch.json ͱ͍͏ϑΝΠϧΛ࡞ ੒͢ΔʢׂѪʣ IUUQTNBSLFUQMBDFWJTVBMTUVEJPDPNJUFNT JUFN/BNFTBMFTGPSDFTBMFTGPSDFEYWTDPEFBQFYSFQMBZEFCVHHFS ͷl1SFSFRVJTJUFTll4FU6Q"QFY3FQMBZ%FCVHHFSzΛࢀর
  6. Demo

  7. ྲྀΕ 1. Apex ͷϩάϨϕϧΛFINESTʹ 2. ιʔείʔυ্ͷ೚ҙͷߦʹ Checkpoint Λஔ͘ 3. Checkpoint

    Λ૊৫ʹ൓ө 4. Apex ࣮ߦ (ը໘ʗςετίʔυʗExecute Anonymous) 5. ϩάऔಘ 6. ϩάϑΝΠϧΛ։͖ɺApex Replay Debugger Λىಈ 7. ιʔεͷमਖ਼ͱ࠶σϓϩΠ 8. 2~7 ͷ܁Γฦ͠
  8. ஫ҙࣄ߲ • Checkpoint ͸5ݸ·Ͱ • Checkpoint ͷ༗ޮظؒ͸30෼ • Ұ౓ʹ replay

    Ͱ͖Δͷ͸1ϑΝΠϧ෼ͷΈ • ඇಉظॲཧͳͲͷ৔߹͸஫ҙ͕ඞཁ
  9. ͓·͚ ʢΑ͘Θ͔Βͳ͔ͬͨ͜ͱʣ

  10. Checkpoint ͱ Breakpoint Checkpoint ͷํ੍͕໿͕͋Δ͚Ͳଟ͘ͷ৘ใΛ ؚΜͰ͍ΔɺΒ͍͠ʁ IUUQTNBSLFUQMBDFWJTVBMTUVEJPDPNJUFNT JUFN/BNFTBMFTGPSDFTBMFTGPSDFEYWTDPEFBQFYSFQMBZEFCVHHFS ͷl1SFSFRVJTJUFTll4FU6Q"QFY3FQMBZ%FCVHHFSzΛࢀর

  11. Checkpoint ͱ Breakpoint ɾ௕͍จࣈྻ͸#SFBLQPJOUͩͱলུ͞ΕΔ ɾαϒΫΤϦͰऔಘͨ͠ΦϒδΣΫτ͕͋Δ৔߹ɺ #SFBLQPJOUͰḷΕΔͷ͸֊૚͚ͩ

  12. Apex Debugger (ͱ ISV Customer Debugger)

  13. Apex Debugger (ͱ ISV Customer Debugger) • ͪ͜Β͸ • ର৅૊৫͸

    Scratch Org ݶఆ • ࢖͑Δͷ͸ Performance Edition ͱ Unlimited Edition ݶఆͰɺͦΕҎ֎͸༗ঈ • ISV Customer Debugger ΋ͪ͜Βʹؚ·ΕΔ • ύοέʔδΛΠϯετʔϧͨ͠૊৫ͰσόοάͰ͖Δ