There are two issues:
- We always call setLibraryDebuggable regardless of whether the current value matches what the default would be
- We always call setLibraryDebuggable for every library in an isolate after a Hot Reload, even though the values would stick
We should only send them if they are both a) libraries we haven't already sent values for and b) differ from what the default would be.
We need to ensure these changes don't interfere with when the user changes the settings (applyDebugOptions) which should always re-send all, or we should track the values on the VM side and then only send if they've changed.
There are two issues:
We should only send them if they are both a) libraries we haven't already sent values for and b) differ from what the default would be.
We need to ensure these changes don't interfere with when the user changes the settings (
applyDebugOptions) which should always re-send all, or we should track the values on the VM side and then only send if they've changed.