You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VSCode should only reset breakpoints after save when already debugging #8077
Noj Vek (@nojvek) please correct me if I'm wrong but the purpose of the afterEdit flag is to help the adapter distinguish between the following two cases:
user has modified breakpoints without editing the underlying source
source was edited which results in new breakpoint locations
source is not dirty then a setBreakpoints request with the attribute sourceModified set to false is issued immediately.
source is dirty, all breakpoint modifications are tracked but no setBreakpoints requests are issued until the next save of the source. In the meantime breakpoints are shown as unverified. After the save a single setBreakpoint request with the attribute sourceModified set to true is issued.
In both cases the result status returned from the setBreakpoints request is applied immediately.
Andre Weinand (@weinand) just to clarify, if the auto save is turned on then the source is never dirty, sourceModified is false and requests are issued immedtly?
Also I do not see the sourceModified field added in our debugProtocol?
Isidor Nikolic (@isidorn) even with auto save turned on there is a short period of time (500ms?) where the file is dirty and where breakpoints should not be updated. So I suggest that the two cases are not treated differently. Breakpoints are always updated after the next save.
Activity
isidorn commentedon Jun 24, 2016
Assigning first to Andre Weinand (@weinand) to add protocol additions - if all looks good there then I can make changes on the vscode side.
weinand commentedon Jun 24, 2016
Noj Vek (@nojvek) please correct me if I'm wrong but the purpose of the
afterEditflag is to help the adapter distinguish between the following two cases:nojvek commentedon Jun 24, 2016
Hi Andre,
That is true. It's basically signaling the debugAdapter that the sourcemaps
won't be accurate so wait till the script is parsed again.
The premise is this:
The v8 vm, chakra, clr and newer VMs can hot load source with their debug
api's. Having VScode hot load code is a very attractive feature.
On Friday, June 24, 2016, Andre Weinand [email protected] wrote:
weinand commentedon Jul 4, 2016
Isidor Nikolic (@isidorn) here are the details:
If breakpoints are changed and ...
setBreakpointsrequest with the attributesourceModifiedset to false is issued immediately.setBreakpointsrequests are issued until the next save of the source. In the meantime breakpoints are shown as unverified. After the save a singlesetBreakpointrequest with the attributesourceModifiedset to true is issued.In both cases the result status returned from the
setBreakpointsrequest is applied immediately.isidorn commentedon Jul 4, 2016
Andre Weinand (@weinand) sounds good, assigning to me so I look into it on the vscode side
isidorn commentedon Jul 7, 2016
Andre Weinand (@weinand) just to clarify, if the auto save is turned on then the source is never dirty, sourceModified is false and requests are issued immedtly?
Also I do not see the
sourceModifiedfield added in our debugProtocol?weinand commentedon Jul 7, 2016
Isidor Nikolic (@isidorn) even with auto save turned on there is a short period of time (500ms?) where the file is dirty and where breakpoints should not be updated. So I suggest that the two cases are not treated differently. Breakpoints are always updated after the next save.
I'll add the
sourceModifiedin a moment...debug: only send breakpoints after save when already debugging
debug: only send breakpoints after save when already debugging