To be able to use the debug protocol in other IDEs (Visual Studio, Xamarin Studio) or VS Code in the future we should think about how the debug protocol should support set next statement.
To make this work well with VS without an impedance mismatch, we need this to be two different requests - one to find the code locations associated with a source line and another to set next statement to one of those. Something like:
"findCodeLocations"
Request:
source: Source;
line: number;
column?: number;
Response:
Array of code locations (ex: addresses)
"setNextStatement"
Request:
threadId: number;
codeLocation: CodeLocation;
We also likely want a new capability.