Adds useful debug features to your Electron app
86
{
"context": "This criteria evaluates how effectively the engineer uses the electron-debug package to implement zero-configuration debugging features in an Electron application. The focus is on proper initialization, configuration options, and programmatic API usage.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import electron-debug",
"description": "Correctly imports the electron-debug package using either ES6 import or CommonJS require syntax. The default export should be imported (e.g., 'import debug from \"electron-debug\"' or 'const debug = require(\"electron-debug\")').",
"max_score": 15
},
{
"name": "Call debug() function",
"description": "Calls the main debug() initialization function to enable debug features. This should be called before or during app initialization, typically before or after app.whenReady().",
"max_score": 20
},
{
"name": "Zero-configuration usage",
"description": "Demonstrates zero-configuration initialization by calling debug() without arguments OR with minimal configuration options. The implementation should leverage electron-debug's automatic defaults rather than over-configuring.",
"max_score": 15
},
{
"name": "Auto-show DevTools",
"description": "Ensures DevTools automatically open in development mode. This can be achieved through electron-debug's default behavior (showDevTools: true) or by explicitly setting the showDevTools option.",
"max_score": 15
},
{
"name": "Development mode detection",
"description": "Relies on electron-debug's automatic development mode detection (via electron-is-dev) to enable/disable debug features. The implementation should not manually check NODE_ENV unless electron-debug's isEnabled option is being explicitly controlled.",
"max_score": 15
},
{
"name": "Use devTools API",
"description": "Imports and uses the devTools() named export from electron-debug for programmatic DevTools toggling. The function should be called to toggle DevTools state (e.g., 'import { devTools } from \"electron-debug\"' and then calling 'devTools()' or 'devTools(window)').",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-electron-debugdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10