Enable core.debug to work like familiar console.log
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the enhancement
Enable additional arguments to the core.debug function, to match core.warn.
Code Snippet
I tried to do the following, assuming that core.debug worked like console.log.
const filePath = core.getInput('filePath', { required: true });
core.debug('filePath', filePath);
But, I only get "filePath` in the output.
Additional information
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the core.debug entry point and compare its argument handling with core.warn. Reproduce the example using core.debug('filePath', filePath), then verify that additional arguments are included in the debug output and that existing debug behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100