Cov txheej txheem:

Kuv yuav ua li cas debug Apex code hauv Salesforce?
Kuv yuav ua li cas debug Apex code hauv Salesforce?

Video: Kuv yuav ua li cas debug Apex code hauv Salesforce?

Video: Kuv yuav ua li cas debug Apex code hauv Salesforce?
Video: Ua Li Ntawv Tsis Yog - David Yang Ft. Keeneng Vang (Official Lyrics Video) 2024, Kaum ib hlis
Anonim

Siv cov checkpoints, cav, thiab View State tab los pab debug cov cai koj tau sau

  1. Teem Checkpoints hauv Apex Code . Siv Developer Console checkpoints rau debug koj Apex cov chav kawm thiab ua rau.
  2. Overlaying Apex Code thiab SOQL Statements.
  3. Checkpoint Inspector.
  4. Log Inspector.
  5. Siv Custom Perspectives nyob rau hauv lub log Inspector.
  6. Debug Cov log.

Ua raws li qhov no saib, Kuv yuav ua li cas thiaj tsim tau lub cav debug hauv Salesforce?

Teem ib tus neeg siv raws tus chij ntawm tus neeg siv qhua

  1. Los ntawm kev teeb tsa, nkag mus rau Debug Logs nyob rau hauv lub Quick Nrhiav lub thawv, ces nyem Debug Logs.
  2. Nyem Tshiab.
  3. Teem lub hom traced rau tus neeg siv.
  4. Qhib lub lookup rau Traced Entity Name teb, thiab tom qab ntawd nrhiav thiab xaiv koj tus neeg siv qhua.
  5. Muab qib debug rau koj tus chij kab.
  6. Nyem Txuag.

Tom qab ntawd, lo lus nug yog, Kuv yuav ua li cas debug chav xeem hauv Salesforce? Mus rau Setup> Developer> Apex Test Execution> Xaiv Kev sim > xaiv qhov xeem chav kawm koj xav pom cov debug log los ntawm nias khiav. Mus rau koj Dev Console. Hauv cov ntawv teev lus koj yuav pom ApexTestHandler ua haujlwm. Ob npaug nias lub log.

Kuj paub, qhov system debug ua dab tsi hauv Apex?

Kev debugging yog ib feem tseem ceeb hauv txhua qhov kev txhim kho programming. Hauv Apex , peb muaj tej yam cuab yeej uas yuav siv tau rau debugging . Ib tug ntawm lawv yog cov qhov system . debug () txoj kev uas luam tawm tus nqi thiab cov zis ntawm qhov sib txawv hauv qhov debug cov ntaub ntawv.

Lub cav debug yog dab tsi?

Debug cav yog qhov system tsim cov ntaub ntawv uas raug xa mus rau koj lub Dashboard nrog rau txhua qhov kev sib tham tshiab. Lawv tsuas tshwm sim yog tias koj cov neeg tsim khoom tau teeb tsa lawv hauv SDK rau qhov muab kev ua si / app version. Hauv cov xwm txheej zoo li kev sib tsoo, cov neeg tsim khoom siv tau cov no cov ntaub ntawv rau debug dab tsi mus tsis ncaj ncees lawm thiab thaum twg.

Pom zoo: