diff options
author | chriseth <chris@ethereum.org> | 2018-12-03 15:23:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-03 15:23:20 +0800 |
commit | a73df9bc18ddb7a4b9aac5a03d810298b82b8a88 (patch) | |
tree | ccadb78b203078b766b04d932f585238ba662110 /docs | |
parent | aaeb74f59283486ee95d71f896cf2dd6cbe503f7 (diff) | |
parent | 4a907faf44b5ca899a316c4646df97b351060423 (diff) | |
download | dexon-solidity-a73df9bc18ddb7a4b9aac5a03d810298b82b8a88.tar.gz dexon-solidity-a73df9bc18ddb7a4b9aac5a03d810298b82b8a88.tar.zst dexon-solidity-a73df9bc18ddb7a4b9aac5a03d810298b82b8a88.zip |
Merge pull request #5562 from Altrum/debugDocs
Updated docs on information about debugging and how to run commands.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/contributing.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/contributing.rst b/docs/contributing.rst index 4ac93565..f9c4d9d9 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -98,6 +98,20 @@ To run a subset of tests, you can use filters: ``./scripts/soltest.sh -t TestSuite/TestName --ipcpath /tmp/testeth/geth.ipc``, where ``TestName`` can be a wildcard ``*``. +For example, here's an example test you might run; +``./scripts/soltest.sh -t "yulOptimizerTests/disambiguator/*" --no-ipc --no-smt``. +This will test all the tests for the disambiguator. + +If you want to debug using GDB, make sure you build differently than the "usual". +For example, you could run the following command in your ``build`` folder: +:: + + cmake -DCMAKE_BUILD_TYPE=Debug .. + make + +This will create symbols such that when you debug a test using the ``--debug`` flag, you will have acecess to functions and varialbes in which you can break or print with. + + The script ``./scripts/tests.sh`` also runs commandline tests and compilation tests in addition to those found in ``soltest``. |