Skip to content

Debugging mode #789

Open
Open
@erunion

Description

@erunion

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreIssues related to `core`, which is the package that powers the SDKs at runtimeenhancementNew feature or requestexplorationA tag to show off your experiments

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions