Cov txheej txheem:

Qhov system debug ua dab tsi hauv Apex?
Qhov system debug ua dab tsi hauv Apex?

Video: Qhov system debug ua dab tsi hauv Apex?

Video: Qhov system debug ua dab tsi hauv Apex?
Video: Kuv Hmoov Phem Los Koj Siab Phem-LOKY(Official MV ) 2024, Kaum ib hlis
Anonim

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.

Hauv qhov no, kuv yuav ua li cas debug chav kawm apex?

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

  1. Teem Cov Chaw Tshawb Xyuas hauv Apex Code. Siv Developer Console checkpoints los kho koj cov chav kawm Apex thiab ua rau.
  2. Overlaying Apex Code thiab SOQL nqe lus.
  3. Checkpoint Inspector.
  4. Log Inspector.
  5. Siv Custom Perspectives nyob rau hauv lub log Inspector.
  6. Debug Logs.

Tsis tas li ntawd, 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.

Ib tug kuj yuav nug, Kuv yuav ua li cas thiaj li kuaj xyuas qhov system debugging hauv Salesforce?

Rau saib a debug log, los ntawm Teeb, nkag mus Debug Nkag mus rau hauv Quick Find box, ces xaiv Debug Cov log. Ces nyem Saib tom ntej no debug log uas koj xav tshuaj xyuas. Nyem Download mus download tau lub cav ua ib cov ntaub ntawv XML.

Kuv yuav ua li cas debug ib nplooj ntawv VF?

Thawj ob peb tug debugging Cov txheej txheem siv yog: Thaum koj right-click hla ib qho point hauv a nplooj thiab xaiv Inspect Element, koj tau txais DOM Element qhia thiab CSS cov qauv uas siv tau pom. Qhov no cia koj pom dab tsi HTML / CSS / JavaScript tau tshwm sim los ntawm koj Visualforce.

Pom zoo: