Skip to content

Interact with the debugger with a custom client #1841

Closed

Description

@mmicu

I came across this debugger recently, but I am not able to understand how I could attach a custom client to the debugger.

I have a simple Python script a.py that I want to debug:

import debugpy

debugpy.breakpoint()

a = 1
b = 2
c = a + b
print(c)

At this point, I run the debugger:

python -m debugpy --listen --wait-for-client localhost:5678 a.py

Now, I would like to write a simple client in Python, which connects to the debugger and i) get all the defined variables, ii) continue to the next instruction and iii) repeat until there is code to run.

I couldn't find any documentation on that. Could you please guide me on how I could do this?

Activity

  1. rchiodo commented on Feb 21, 2025

    @rchiodo
    Contributor

    Transferring to Q/A. Not a bug in debugpy.

  2. locked and limited conversation to collaborators on Feb 21, 2025
  3. converted this issue into a discussion #1842 on Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

needs reproIssue has not been reproduced yet

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions