console.trace([message][, ...args])
添加於:v0.1.104
參數
將字符串 'Trace: '
打印到 stderr
,後跟
格式化消息和堆棧跟蹤到代碼中的當前位置。util.format()
console.trace('Show me');
// Prints: (stack trace will vary based on where trace is called)
// Trace: Show me
// at repl:2:9
// at REPLServer.defaultEval (repl.js:248:27)
// at bound (domain.js:287:14)
// at REPLServer.runBound [as eval] (domain.js:300:12)
// at REPLServer.<anonymous> (repl.js:412:12)
// at emitOne (events.js:82:20)
// at REPLServer.emit (events.js:169:7)
// at REPLServer.Interface._onLine (readline.js:210:10)
// at REPLServer.Interface._line (readline.js:549:8)
// at REPLServer.Interface._ttyWrite (readline.js:826:14)
相關用法
- Node.js Console.timeLog([label][, ...data])用法及代碼示例
- Node.js Console.timeEnd([label])用法及代碼示例
- Node.js Console.table(tabularData[, properties])用法及代碼示例
- Node.js Console.countReset([label])用法及代碼示例
- Node.js Console.assert(value[, ...message])用法及代碼示例
- Node.js Console.log([data][, ...args])用法及代碼示例
- Node.js Console.count([label])用法及代碼示例
- Node.js Console.error([data][, ...args])用法及代碼示例
- Node.js Console用法及代碼示例
- Node.js MySQL Count()用法及代碼示例
- Node.js CSV轉Excel用法及代碼示例
- Node.js Certificate.exportPublicKey(spkac[, encoding])用法及代碼示例
- Node.js Channel.unsubscribe(onMessage)用法及代碼示例
- Node.js MySQL CONCAT_WS()用法及代碼示例
- Node.js Channel.hasSubscribers用法及代碼示例
- Node.js Channel.publish(message)用法及代碼示例
- Node.js MySQL CHARACTER_LENGTH()用法及代碼示例
- Node.js Certificate.verifySpkac(spkac[, encoding])用法及代碼示例
- Node.js MySQL CHAR_LENGTH()用法及代碼示例
- Node.js Certificate.exportChallenge(spkac[, encoding])用法及代碼示例
- Node.js ClientHttp2Session.request(headers[, options])用法及代碼示例
- Node.js Cipher用法及代碼示例
- Node.js Channel.subscribe(onMessage)用法及代碼示例
- Node.js ServerHttp2Stream http2stream.pushStream(headers[, options], callback)用法及代碼示例
- Node.js http2.Http2ServerRequest request.url用法及代碼示例
注:本文由純淨天空篩選整理自nodejs.org大神的英文原創作品 Console.trace([message][, ...args])。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。