Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • A adblockpluscore
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 90
    • Issues 90
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Jira
    • Jira
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • eyeoeyeo
  • adblockplus
  • abc
  • adblockpluscore
  • Issues
  • #71
Closed
Open
Issue created Sep 02, 2019 by Andrea Giammarchi@agiammarchiContributor

Provide a `debug` flag to any snippet

In order to move forward with CV-19, we need to provide a way to enable a debugging flag to any kind of snippet we export.

Any snippet filter could be prefixed with a call to the snippet debug which enables debugging per each snippet/function we use.

The debug flag is setup in a way that each function could have more details in console, keeping the filter identical except for the optional debug prefix snippet.

example.com#$#log OK
VS
example.com#$#debug; log OK

What to change

  • Add the debug snippet in the snippet library
  • Add debug support to the log snippet, prefixing the log output with DEBUG
  • Add test

Hints for tester

  • Create a log snippet filter
  • Test it work as expect
  • Modify the filter to add debug
  • Test it shows the debug output
Edited Sep 17, 2019 by Manish Jethani
Assignee
Assign to
Time tracking