script
try {
throw new Error('Something went wrong!');
} catch (error) {
console.error(error);
}
script
import { createError } from '@babel/helper-plugin-utils';
const customError = createError('CustomError', 'This is a custom error message.');
throw new customError();
script
console.log('Debug information:', variable);
script
function foo() {
debugger;
}
script
module.exports = {
// ...
"env": {
"development": {
}
}
};