Skip Headers
Oracle® Big Data Connectors User's Guide
Release 2 (2.1)

Part Number E36961-05
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

orch.dbg.output

Directs the output from the debugger.

Usage

orch.dbg.output(con)

Arguments

con

Identifies the stream where the debugging information is sent: stderr(), stdout(), or a file name.

Usage Notes

You must first turn on debugging mode before redirecting the output.

Return Value

The current stream

See Also

orch.dbg.on

Example

This example turns on debugging mode and sends the debugging information to stderr. The orch.dbg.output function returns a description of stderr.

R> orch.dbg.on('all')
R> err<-orch.dbg.output(stderr())
17:32:11 [SY] debug output set to "stderr"
R> print(err)
description          class     mode      text    opened    can read    can write
   "stderr"     "terminal"      "w"    "text"   "opened"       "no"        "yes"

The next example redirects the output to a file named debug.log:

R> err<-orch.dbg.output('debug.log')
17:37:45 [SY] debug output set to "debug.log"
R> print(err)
[1] "debug.log"