Debugger capability in tests
Currently we don't have a way to attach a Python debugger while running tests. This removes the possibility to use IDE debuggers for easier/faster identification of bugs.
Is it possible to attach a debugger in our current testing setup? If not, what changes are necessary?
do you have a specific debugging environment that you use? does it fail and can you provide more info on how it fails?
I'm using the standard VSCode Python debugging environment. When I run a test file with the debugger attached, it fails when importing eth2spec with a ModuleNotFoundError.
I tried to recreate the situation like this:
- Install
eth2specusingmake install_test. - Ensure that
eth2specmodule is installed by checkingpip list. - Run
pythonand check ifimport eth2specworks.
Step 3 fails with the same ModuleNotFoundError.
What's the correct way to import eth2spec?