What does the Node.js `--nolazy` flag mean?

后端 未结 5 879
無奈伤痛
無奈伤痛 2021-02-01 13:28

When I use --nolazy, I can finally debug asynchronously with IntelliJ, as breakpoints stop at the correct place. But I can\'t find any docs on --nolazy

5条回答
  •  清酒与你
    2021-02-01 13:54

    As others have said, you can see command line options for v8 with

    node --v8-options
    

    There, you can see a listing for --lazy:

    --lazy (use lazy compilation)
          type: bool  default: true
    

    v8 uses a fairly common way to describe booleans - prefix the flag with no to set to false, and use just the flag to set to true. So --nolazy sets the lazy flag to false.

    Note: node uses a slightly different convention - there, you use the no- prefix (note the dash) to set bools to false. For example, --no-deprecation is a node flag.

提交回复
热议问题