Skip to content

Draft: EVL fix debugging#190

Merged
agarciadom merged 8 commits intomainfrom
evl-fix-debug
Jun 12, 2025
Merged

Draft: EVL fix debugging#190
agarciadom merged 8 commits intomainfrom
evl-fix-debug

Conversation

@agarciadom
Copy link
Contributor

@agarciadom agarciadom commented Jun 9, 2025

Fixes #187.

Here is a WIP pull request for adding debugging support to EVL fixes.

This is trickier than it seems, as it breaks an assumption we had in our DAP support: that modules ran to completion and then finished. I had to move the concept of when a module was "done" to a new method in the IEolDebugger interface: the done() method in IEolDebugger doesn't work as it is called after the execution listener's finishedExecuting method, which is where the debug adapter reacts to the program having completed its execution.

I also had to tweak the EVL UI in Eclipse so that it won't block when we hit a breakpoint in the middle of applying a fix. We need to do something similar for computing the titles of the fixes, but this means we have to change from a context menu, to something like the "quick fixes" dialog in Eclipse.

@kolovos, would you be OK with the above change in the Validation view?

@agarciadom agarciadom requested a review from kolovos June 9, 2025 18:03
@agarciadom agarciadom marked this pull request as draft June 9, 2025 18:04
@agarciadom agarciadom changed the title Draft: EVL fix debugging Draft: EVL fix debugging (fixes #187) Jun 9, 2025
@agarciadom agarciadom changed the title Draft: EVL fix debugging (fixes #187) Draft: EVL fix debugging Jun 9, 2025
@agarciadom
Copy link
Contributor Author

I've gone ahead and tried implementing the change. Right-clicking on a problem with one or more fixes will show a "Quick Fix..." option. When selected, it'll precompute all the titles of the fixes (allowing for stopping at a breakpoint if desired), and then it will show a dialog. The chosen fix could also stop at a breakpoint if needed.

This is now ready for a full review.

@agarciadom agarciadom marked this pull request as ready for review June 9, 2025 19:37
Copy link
Contributor

@kolovos kolovos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@agarciadom agarciadom merged commit 49460f5 into main Jun 12, 2025
5 checks passed
@agarciadom agarciadom deleted the evl-fix-debug branch June 12, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DAP] Debugging not supported for EVL fix blocks

2 participants