-
Notifications
You must be signed in to change notification settings - Fork 294
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
Fixes to IW debugging with breakpoints #10263
Conversation
(bp) => bp.line <= cell.metadata.generatedCode!.endLine | ||
); | ||
} | ||
if (sortedLines.filter((line) => line > cell.metadata.generatedCode!.endLine).length) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rchiodo we add breakpoints for each cell by splitting the breakpoints by cells.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is breakpoints the only thing that needs this special translation? What about stack frames?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's fine
} | ||
// Find the cell that matches this line in the IW file. | ||
const cell = this.cellToDebugFileSortedInReverseOrderByLineNumber.find( | ||
(item) => item.debugFilePath === source.path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment seems wrong here. It's not searching by line but rather by the translated debugFilePath. That does map to a specific cell entry.
Tests are actually already there, you just need to undo the changes I made for this issue. Then they'll run the normal tests. |
Oh wait I shouldn't have approved. You should undo the changes I made here:
and here
|
Codecov Report
@@ Coverage Diff @@
## main #10263 +/- ##
=====================================
- Coverage 64% 64% -1%
=====================================
Files 204 204
Lines 9287 9295 +8
Branches 1504 1505 +1
=====================================
+ Hits 5963 5966 +3
- Misses 2854 2857 +3
- Partials 470 472 +2
|
Fixes #10258
Will add tests next week.