Microsoft
GH-200 · Question #44
How should you print a debug message in your workflow?
Sign in or unlock GH-200 to reveal the answer and full explanation for question #44. The question stem and answer options stay visible for context.
Author and Maintain Workflows
Question
How should you print a debug message in your workflow?
Options
- Aecho "::debug::Set variable myVariable to true"
- Becho "Set variable MyVariable to true" >> $DEBUG_MESSAGE
- Cecho "::add-mask::Set variable myVariable to true"
- Decho "debug_message=Set variable myVariable to true" >> &GITHUB_OUTPUT
Unlock GH-200 to see the answer
You've previewed enough free GH-200 questions. Unlock GH-200 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#GitHub Actions#Workflow commands#Debugging#Logging