node inspect yourScript.js
Insert debugger;
from IPython.display import IFrame
display(IFrame("http://nodejs.org/en/docs/guides/debugging-getting-started/", width=900, height=650))
node --inspect script/server
--inspect-brk
--inspect=<port>
ndb
blackboxes all scripts outside current working directorydebug
packagagemongoose.set('debug', true)
const logger = winston.createLogger({
level: 'info',
format: winston.format.json(),
transports: [
//
// - Write to all logs with level `info` and below to `combined.log`
// - Write all logs error (and below) to `error.log`.
//
new winston.transports.File({ filename: 'error.log', level: 'error' }),
new winston.transports.File({ filename: 'combined.log' })
]
});
//
// If we're not in production then log to the `console` with the format:
// `${info.level}: ${info.message} JSON.stringify({ ...rest }) `
//
if (process.env.NODE_ENV !== 'production') {
logger.add(new winston.transports.Console({
format: winston.format.simple()
}));
}
logger.log('silly', "127.0.0.1 - there's no place like home");
logger.log('debug', "127.0.0.1 - there's no place like home");
logger.log('verbose', "127.0.0.1 - there's no place like home");
logger.log('info', "127.0.0.1 - there's no place like home");
logger.log('warn', "127.0.0.1 - there's no place like home");
logger.log('error', "127.0.0.1 - there's no place like home");
logger.info("127.0.0.1 - there's no place like home");
logger.warn("127.0.0.1 - there's no place like home");
logger.error("127.0.0.1 - there's no place like home");
https://docs.sentry.io/learn/configuration/?platform=javascript
from IPython.display import IFrame
display(IFrame("https://www.typescriptlang.org/", width=900, height=650))
from IPython.display import IFrame
display(IFrame("https://elm-lang.org/", width=900, height=650))
from IPython.display import IFrame
display(IFrame("https://flow.org/", width=900, height=650))