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

Debugging mode #789

Open
erunion opened this issue Oct 25, 2023 Discussed in #545 · 0 comments
Open

Debugging mode #789

erunion opened this issue Oct 25, 2023 Discussed in #545 · 0 comments
Labels
area:core Issues related to `core`, which is the package that powers the SDKs at runtime enhancement New feature or request exploration A tag to show off your experiments

Comments

@erunion
Copy link
Member

erunion commented Oct 25, 2023

Discussed in #545

Originally posted by erunion October 25, 2022
Because a lot of the work that api does behind the scenes can be a bit magical it'd be nice if there was some sort of debugging mode that you could enable that would log out the HAR that we use in the backend with fetch-har.

const sdk = require('@api/petstore');

// leaf handling
sdk.debug();
sdk.operation().then(...)
const sdk = require('@api/petstore');

sdk.debug().operation().then(...)

Perhaps the chained mode should only apply the debug mode to the operation it's attached to.

@erunion erunion added enhancement New feature or request exploration A tag to show off your experiments area:core Issues related to `core`, which is the package that powers the SDKs at runtime labels Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core Issues related to `core`, which is the package that powers the SDKs at runtime enhancement New feature or request exploration A tag to show off your experiments
Projects
None yet
Development

No branches or pull requests

1 participant