0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Apex Relay Debugger設定

Posted at

要件

VsCodeでApexのDebugはどうやってできるか

参照資料

要点

JavaのVersionが限定されていること

 これはVscodeの制限です。Versionが合わないとDebuggerだけではなく、関数のJumpなどもできない

Breakpoits と Checkpointsの区別

 Checkpointsは特別Breakpointsです。その点のStack、Heapの詳しい情報をめもされる
 Checkpointsは最大5個です。アイコンも違います。(〇に横線 → Checkpoints)
Sfdxのtoggle checkpointsコマンドで、設定する

STEP

① Install Vscode, Salesforce CLI
install Java (JDK version 17 (Recommended), JDK version 11, or JDK version 8)
-> JAVA_HOME
-> File > Preferences > Settings (Windows or Linux) or Code > Preferences > Settings
apex java
salesforcedx-vscode-apex.java.home
image.png

② Create Sf project
create Apex class
create Apex TestClase and deploy to org
( Ctrl shift P)
③ Debug
  ・Set Breakpoints and Checkpoints
  ( そのBreakpointラインを選択し、SFDX: Toggle Checkpoint、アイコンが変わる)
・SFDX: Update Checkpoints in Org
・SFDX: Turn On Apex Debug Log for Replay Debugger
・テストクラスを実行する(コマンドか、クラスのアノテーションか)
・SFDX: Get Apex Debug Logs
・Replay an Apex Debug Log
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?