Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce debug option #166

Open
marc0olo opened this issue Jul 30, 2021 · 2 comments
Open

introduce debug option #166

marc0olo opened this issue Jul 30, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@marc0olo
Copy link
Contributor

marc0olo commented Jul 30, 2021

this is a feature request of Dincho as following command he used somehow got in stuck and he has no idea where:

➜  aepp-calldata-js git:(test_utils) ✗ aecli contract deploy --json -P $WALLET_PASS --networkId ae_uat $WALLET_PATH contracts/Test.aes "cb_KxFE1kQfP4oEp9E="
@marc0olo marc0olo added the enhancement New feature or request label Jul 30, 2021
@davidyuk
Copy link
Member

somehow got in stuck

aecli should not behave like this, we need a reproduction to fix this.

introduce debug option

I think it is too early to cover cli with an obvious console.logs enableable by a flag. Also, the issue may be in sdk, so console.logs would be needed there as well. I assume these logs need for cli developers to easily understand a possible bug, but as a cli developer, I don't need them yet.

I've tried to use integrated debugging capability of node and it looks not difficult to work with:

  1. $ node --inspect ./bin/aecli-chain.js status
  2. open chrome://inspect in Chrome and press 'inspect' for bin/aecli-chain.js in remote targets
  3. add bin folder in 'Sources' tab
  4. now you can add breakpoints (control script execution) and check variable values

@davidyuk
Copy link
Member

davidyuk commented Apr 5, 2024

depends on aeternity/aepp-sdk-js#1966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants