DEV Community

Discussion on: Hidden gems of debugging 💎

Collapse
 
aman_singh profile image
Amandeep Singh • Edited

Thanks 👏 for sharing this beautiful 💎. Given you have an easy eslint rules set up (or don't mind writing /* eslint-disable-next-line*/, debugger statement can really help. I never tried editing source code directly but I think it will be fun. I have purposely created a code snippet (in VS code) which expands to the aforementioned statement with a debugger in next line. 🙂

// VS code user snippet
  "debugger with eslint-disable-next-line": {
    "prefix": "deb",
    "body": ["/* eslint-disable-next-line */", "debugger;"]
  }