wso2 / mi-vscode

Micro Integrator extension for Visual Studio Code
Apache License 2.0
2 stars 3 forks source link

Debugger not working if Call mediator involved #47

Open rosensilva opened 2 months ago

rosensilva commented 2 months ago

Description: Add a breakpoint to the first mediator and step over. Step over will work until we hit the call mediator

Steps to reproduce: sdfsdfsd.zip

Related Issues:

sachiniSam commented 1 month ago

The issue arises when performing a stepOver after the call mediator. During a stepOver, an Event from the server related to the stepOver breakpoint should be received. However, in this instance, that event is not received, and a Terminate event is sent from the server, which ideally should only be sent after the completion of the debug request. With the Terminate request we clear out the StepOver breakpoints maintained in the FE. To resolve this, the server implementation needs to be checked to ensure it sends the correct events. @rosensilva

As a workaround, we can add a breakpoint after the call-mediator. Then the debugging will work as expected