Skip to content

Vscode Sets breakpoint in both sessions in multicore debugging with single Debug Configuration  #181794

Open

Description

@asitsahoo351

In multicore debugging with a single debug configuration when we try setting breakpoints in either of the sessions it sets breakpoints for both of the debug sessions. For Example, Consider the Following case:

When we set a breakpoint in one Session which turns out to be an outbound breakpoint, then it tries to resolve the breakpoint to a random location in the other Debug Session, which results in an exception. So if we can stop setting breakpoint in both sessions and instead set them only in the user-requested session, we can overcome this problem.

Activity

  1. roblourens commented on May 12, 2023

    @roblourens
    Member

    What language? Adding a breakpoint always sets it in all debug sessions, but if it's not a valid location for some debug session that should be ignored.

  2. added
    info-needed
    on May 12, 2023
  3. asitsahoo351 commented on May 16, 2023

    @asitsahoo351
    Author

    If we set breakpoint always in all debug sessions, It might create an issue in case of Disassemly Debugging. The location of the breakpoints is the Instructions Addresses in disassembly Debugging. The Instruction addresses of one Session might resolve with the Instruction address of another Session. Hence, it might hit the breakpoint in an unexpected location.

    To resolve such conflicts, we can set them only in the user-requested session.

  4. roblourens commented on May 16, 2023

    @roblourens
    Member

    I think you're right and that could possibly be an issue, just looking at DAP, but we don't have a way to avoid this right now

  5. added
    bug
    debug
    and removed
    info-needed
    on May 16, 2023
  6. added this to the Backlog milestone on May 16, 2023
  7. connor4312 commented on Sep 7, 2023

    @connor4312
    Member

    We would have to introduce the notion of session or config-specific breakpoints, which is a good idea but a bigger change

  8. added
    feature-request
    and removed
    bug
    on Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

debugfeature-request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions