Skip to content

Question: What is yieldSteps? #71

Closed

Description

@jacj-simcorp

The parameter yieldSteps is available in Launch configurations.
What is the purpose of this parameter?
What are reasonable bounds?
Are there any performance implications of setting this high or low?

Thanks for your time :)

Activity

  1. hackwaly commented on Sep 5, 2024

    @hackwaly
    Owner

    The debuggee program's execution is threaded by the debugger. The yieldSteps is how many instructions the program can run in a batch. Because debugger and debuggee are run in same thread. So in a batch run: debugger are blocked and can't process any UI actions, such as set breakpoint, pause, etc.

    The bigger yieldSteps result better performance. The smaller yieldSteps let you can have good opportunity to pause program at your desired position.

  2. jacj-simcorp commented on Sep 5, 2024

    @jacj-simcorp
    Author

    The debuggee program's execution is threaded by the debugger. The yieldSteps is how many instructions the program can run in a batch. Because debugger and debuggee are run in same thread. So in a batch run: debugger are blocked and can't process any UI actions, such as set breakpoint, pause, etc.

    The bigger yieldSteps result better performance. The smaller yieldSteps let you can have good opportunity to pause program at your desired position.

    Thanks.
    When you say "pause program at your desired position", is this in relation to clicking "pause" or also for breakpoints? Or are breakpoints always hit, independently of the yieldSteps setting? I assume so?

  3. jacj-simcorp commented on Sep 5, 2024

    @jacj-simcorp
    Author

    With an extremely large setting, you are effectively then unable to "pause", I assume?

    Does yieldSteps apply when stepping? Is this effectively the minimum number of steps taken when you click step over/step in?

  4. hackwaly commented on Sep 5, 2024

    @hackwaly
    Owner

    No, it does not affect to stepping. It only for setBreakpoint/pause a running program.

  5. Repository owner locked and limited conversation to collaborators on Sep 12, 2024
  6. converted this issue into a discussion #72 on Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions