Skip to content

Question: global way to always print to stdout/stderr? #3421

Answered by mribeirodantas
vsoch asked this question in Q&A
Discussion options

You must be logged in to vote

Instead of adding debug true to the beginning of every process block, you can set it once in the nextflow.config file. Simply adding the line below to the nextflow.config file in your launching directory...

process.debug = true

will make the following Nextflow script print hello and then world to the standard output.

process A {

  output:
    stdout
  script:
  """
  echo 'hello'
  """
}

process B {

  output:
    stdout
  script:
  """
  echo 'world'
  """
}

workflow {
  A()
  B()
}

Try removing the line from the nextflow.config file and you'll see the hello and world will no longer be printed to the standard output.

There is also another way to do that, without having to create/cha…

Replies: 1 comment 32 replies

Comment options

You must be logged in to vote
32 replies
@vsoch
Comment options

@pditommaso
Comment options

@bentsherman
Comment options

@bentsherman
Comment options

@grondo
Comment options

Answer selected by vsoch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #3420 on November 22, 2022 04:43.