fix: can`t handle terminated event from debugpy#1119
fix: can`t handle terminated event from debugpy#1119deepin-mozart merged 2 commits intoCodeya-IDE:masterfrom
Conversation
Log: cppdap does not process event which body is empty, but 'body'is an optional filed, it should handle such cases. Bug:
Reviewer's GuideThis PR removes manual thread tracking and termination handling from the DAP debugger and updates the DAP session deserializer to gracefully handle empty bodies for specific events (notably "terminated"). File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey @LiHua000 - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| d->field("body", [&](dap::Deserializer* d) { | ||
| if (!typeinfo->deserialize(d, data)) { | ||
| // todo: to completed | ||
| std::set<std::string> bodyCanBeEmpty { "terminated" }; |
There was a problem hiding this comment.
suggestion: Optimize optional-body lookup and broaden handling
Make bodyCanBeEmpty a static const to avoid reallocations, and review the DAP spec for other events (e.g. initialized, stopped) that may omit a body to prevent false negatives.
…ebugging starts. Log: as title Bug:
deepin pr auto review代码审查意见:
以上是本次代码审查的改进意见,希望能够对您有所帮助。 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deepin-mozart, LiHua000 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Log: cppdap does not process event which body is empty, but 'body'is an optional filed, it should handle such cases.
Bug:
Summary by Sourcery
Allow processing of DAP events with empty bodies and remove obsolete thread-based termination logic.
Bug Fixes:
Enhancements: