use xysfdx print debug

Posted by ExiaHuang on January 3, 2020

print debug

  • force:apex:log:tail
  • force:apex:log:tail:skiptraceflag
  • force:apex:log:tail:grep_debug_log
  • force:apex:log:tail:write_to_file
  • force:apex:log:tail:tee_to_file

for windows user, if you want to tee log to file, please change to wsl, docker, bash mode.

usage example

run force:apex:log:tail:grep_debug_log

write a script, save and run it.

1
2
3
string tempvar = 'Enter_your_name_here';
System.debug('Hello World!');
System.debug('My name is ' + tempvar);

view the log in termial.

xysfdx-grep-debug-log