![]() ![]() ![]() brownie consoleĪnd just try to run and debug things yourself. ![]() In the brownie shell you can do "anything". The final way is to just use the brownie console. This is (in my opinion) one of the best ways. ![]() If there is an error, it will place you into a console where the error last was, and you can just run python commands to see what's going on. A Visual Studio Code extension with rich support for the Python language (for all actively supported versions of the language: >3. You can test it and step into the console like: brownie test -k test_something -pdb When running tests, you can pass any flag you'd normally pass to pytest, and debug the same way you'd debug python.įor example, if you have a test like: def test_something(): If you encounter the following error: Cannot read property openConfigFile of undefined, you can manually create launch.json file in. Let's see how we setup VScode to allow debugging of python code.We should already have VScode and Python installedWe will not cover how to. click on a folder in a WSL target of interest: youll see that this causes some re-installation. 1) Override the entrypoint at runtime and exec into the container.│ │ │ └─KYCRegistrar.isPermittedID 3065:3137 How to Debug Docker Containers (Python + VSCode) You can use any one of these to see why a transaction did/didn't go through.Ĭall trace for '0xd31c1c8db46a5bf2d3be822778c767e1b12e0257152fcc14dcf7e4a942793cb4': Use the Built in tools.īrownie has several tools like checking the transaction trace, revert messages, and call traces. You can debug in brownie a few different ways. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |