最終更新:2023-01-04 (水) 11:43:20 (623d)
console
Top / console
JavaScript
- https://developer.mozilla.org/ja/docs/Web/API/Console
- http://getfirebug.com/wiki/index.php/Console_API
メモ
- Firebugで実装されていた機能だったがSafariやGoogle Chromeで標準搭載された
- IEには存在しない
メソッド
- console.assert?
- console.count? - 呼ばれた回数を返す
- console.debug?
- console.dir
- console.dirxml?
- console.error
- console.group
- console.groupCollapsed?
- console.groupEnd?
- console.info
- console.log
- console.markTimeline?
- console.profile?
- console.profileEnd?
- console.time? - time()〜timeEnd()までの間にある処理を計測する
- console.timeEnd?
- console.timeStamp?
- console.trace - スタックトレースを表示
- console.warn
機能の確認
for (var p in console) { console.log('console.' + p + '() is supported!'); }
関連
参考
カーネルパラメータ
- Linux/console
- 例
console=tty02,115200n8
console= [KNL] Output console device and options. tty<n> Use the virtual console device <n>. ttyS<n>[,options] ttyUSB0[,options] Use the specified serial port. The options are of the form "bbbbpnf", where "bbbb" is the baud rate, "p" is parity ("n", "o", or "e"), "n" is number of bits, and "f" is flow control ("r" for RTS or omit it). Default is "9600n8". See Documentation/serial-console.txt for more information. See Documentation/networking/netconsole.txt for an alternative. uart[8250],io,<addr>[,options] uart[8250],mmio,<addr>[,options] Start an early, polled-mode console on the 8250/16550 UART at the specified I/O port or MMIO address, switching to the matching ttyS device later. The options are the same as for ttyS, above. If the device connected to the port is not a TTY but a braille device, prepend "brl," before the device type, for instance console=brl,ttyS0 For now, only VisioBraille is supported.