Skip to content

Question :: Howto enable debug traces #240

@shamb0

Description

@shamb0

Hey There,

Very basic question, tried to execute the test with command "yarn run test ./test/contracts/ovm/execution-manager/ExecutionManager.executeCall.spec.ts ", but I don't know howto activate the internal traces both from *.sol & *.ts

Long console log in stripped form ...

vagrant@vagrant:/vagrant/ws-020-blocks/demo-002-optimism/optimism-monorepo/packages/contracts$ yarn run test ./test/contracts/ovm/execution-manager/ExecutionManager.executeCall.spec.ts 
yarn run v1.22.5
$ yarn run test:contracts ./test/contracts/ovm/execution-manager/ExecutionManager.executeCall.spec.ts
$ cross-env SOLPP_FLAGS="FLAG_IS_TEST,FLAG_IS_DEBUG" buidler test --show-stack-traces ./test/contracts/ovm/execution-manager/ExecutionManager.executeCall.spec.ts
Compiling...

Compiled 61 contracts successfully


  Execution Manager -- TX/Call Execution Functions
    executeNonEOACall
      ✓ fails if the provided timestamp is 0 (118ms)
      ✓ properly executes a raw call -- 0 param (151ms)
    executeEOACall
      ✓ properly executes a raw call -- 0 param (303ms)
      ✓ increments the senders nonce (189ms)
      ✓ properly executes a raw call -- 1 param (265ms)
      ✓ reverts when it makes a call that reverts
      ✓ reverts when it makes a call that fails a require (218ms)


  7 passing (13s)

Done in 37.86s.

Any configuration missing ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions