OK, so I’m starting to learn about debugging in SFDX.

Execute Anonymous

The easiest thing you can do is Execute Anonymous.

Here is the CLI reference for Execute, but as for all the Developer docs it’s hard to read and you just get lost.

Quick way:

More complex way, but cool:

Streaming Logs

Just like you would start a debug log in the UI, then do your stuff, then open the debug log and search through it, you can use the Streaming Logs..

You can do cool things like…

However…

Apex Replay Debugger