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

Add support to async code to pdb #86211

Closed
hackaugusto mannequin opened this issue Oct 15, 2020 · 2 comments
Closed

Add support to async code to pdb #86211

hackaugusto mannequin opened this issue Oct 15, 2020 · 2 comments
Labels
topic-asyncio type-feature A feature request or enhancement

Comments

@hackaugusto
Copy link
Mannequin

hackaugusto mannequin commented Oct 15, 2020

BPO 42045
Nosy @asvetlov, @1st1, @hackaugusto

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2020-10-15.15:24:26.988>
labels = ['type-feature', 'expert-asyncio']
title = 'Add support to async code to pdb'
updated_at = <Date 2020-10-15.15:24:26.988>
user = 'https://github.com/hackaugusto'

bugs.python.org fields:

activity = <Date 2020-10-15.15:24:26.988>
actor = 'hack.augusto'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['asyncio']
creation = <Date 2020-10-15.15:24:26.988>
creator = 'hack.augusto'
dependencies = []
files = []
hgrepos = []
issue_num = 42045
keywords = []
message_count = 1.0
messages = ['378687']
nosy_count = 3.0
nosy_names = ['asvetlov', 'yselivanov', 'hack.augusto']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue42045'
versions = []

@hackaugusto
Copy link
Mannequin Author

hackaugusto mannequin commented Oct 15, 2020

Currently it seems that pdb does not support executing async functions. This makes debugging async code a bit harder if one needs to call an async function from the REPL.

Here is an example:

import asyncio

async def f() -> int:
    return 1

async def main():
    breakpoint()

asyncio.run(main())

The goal would be to call f(). In a real world application this could be additional HTTP requests, database queries, etc.

@hackaugusto hackaugusto mannequin added topic-asyncio type-feature A feature request or enhancement labels Oct 15, 2020
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@kumaraditya303
Copy link
Contributor

Duplicate of #77081

@kumaraditya303 kumaraditya303 marked this as a duplicate of #77081 Sep 11, 2022
@kumaraditya303 kumaraditya303 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-asyncio type-feature A feature request or enhancement
Projects
Status: Done
Development

No branches or pull requests

1 participant