Debug agent cannot handle two StepRequests on the same thread

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 8, 24
    • Component/s: core-svc
    • None

      If you execute the following code:

                  stepRequest1 = erm.createStepRequest(mainThread,
                                                      StepRequest.STEP_LINE,
                                                      StepRequest.STEP_OVER);
                  stepRequest2 = erm.createStepRequest(mainThread,
                                                      StepRequest.STEP_LINE,
                                                      StepRequest.STEP_OVER);
                  stepRequest1.enable();
                  stepRequest2.enable();

      You would expect that the event handler would receive two StepEvents, one for each request. That is the way other EventRequest works. It turns out you'll only receive one StepEvent, and it will be for the 2nd (last) StepRequest that is enabled.

      The 2nd issue is that if you disable either StepRequest, both of them get disabled.

            Assignee:
            Unassigned
            Reporter:
            Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: