-
Notifications
You must be signed in to change notification settings - Fork 326
Breakpoint is ignored after code is edited (no reload). #433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
cc @mit-mit |
@mit-mit This is a different issue. It appears that as the programmer modifies their source code the plugin is telling the VM to move breakpoints. This confuses the VM because it is running the unmodified source code. The plugin must always update source code + breakpoints atomically. |
I agree this is unexpected. The plugin should not push breakpoint updates until the developer pushes code changes to target (i.e., when the developer hits reload or restart) -- I believe this is #305.
I am not convinced this is expected. I think it would be perfectly find to have the program stop at |
@skybrian : while you're looking at debugging in general, could you take a poke at this updating the status of this one? |
This is looking tricky. IDEA doesn't do this for other languages and the debugger code isn't entirely under our control - it's split between the Flutter plugin, Dart plugin, and the IDEA framework. So we're probably going to put this off. Instead, I think we should show some kind of warning when the code is out of date, maybe with a button for the user to hot reload. (Not sure about the UI, though.) |
@skybrian Can you please document your findings and recommendation and then we can discuss it at tomorrow's devtools meeting? |
Sure. I don't see this meeting on my calendar. Could you send me an invite? |
@skybrian You've been invited. |
I don't believe anything has changed. As I'll be on leave, unassigning for triage. |
Closing this since it now works as it should: stops at the breakpoint in the edited code. |
Steps to reproduce:
EXPECTED: Program stops at breakpoint in the original, unedited source code. This source code is known to the vm and is available through the vm service.
ACTUAL: Breakpoint is apparently ignored.
cc'ing @johnmccutchan
The text was updated successfully, but these errors were encountered: