actions / actions/toolkit

Enable core.debug to work like familiar console.log

Open
#1,474 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.