Adds useful debug features to your Electron app
86
{
"context": "This criteria evaluates the engineer's understanding and usage of electron-debug's event-driven initialization capability. Specifically, it assesses whether the engineer properly uses the package to automatically set up development tools for all windows through the browser-window-created event hook, rather than manually initializing tools for each window.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Package import",
"description": "The electron-debug package is properly imported/required in the main process file",
"max_score": 10
},
{
"name": "Initialization call",
"description": "The debug() function (default export from electron-debug) is called to initialize the package",
"max_score": 20
},
{
"name": "Initialization timing",
"description": "The debug() initialization is called before windows are created (e.g., before or within app.whenReady() callback) to ensure the browser-window-created event listener is registered in time",
"max_score": 25
},
{
"name": "Event-driven setup",
"description": "The implementation relies on electron-debug's automatic event-driven initialization rather than manually calling devTools/openDevTools functions for each window individually",
"max_score": 30
},
{
"name": "Multi-window support",
"description": "The solution demonstrates that development tools work automatically on multiple windows (both main and child windows) without window-specific initialization code",
"max_score": 15
}
]
}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