Skip to content

[cppdbg] Support new sourceFileMap schema - #6319

Merged
Andrew Wang (WardenGnaw) merged 6 commits into
masterfrom
dev/waan/updateSourceFileMap
Oct 22, 2020
Merged

Andrew Wang (WardenGnaw) merged 6 commits into
masterfrom
dev/waan/updateSourceFileMap

Conversation

@WardenGnaw

@WardenGnaw Andrew Wang (WardenGnaw) commented Oct 15, 2020 •

Copy link
Copy Markdown
Member

For cppdbg, sourceFileMap can be used for binding breakpoints.
If keeping with the old format "<source-path>":"<target-path>", it will
always be used for breakpoints.

If you use the new:

"<compile-path>" : {
   "editorPath": "<target-path>",
   "useForBreakpoints": true
}

The sourceMap will only be used for frame enumeration.

Descriptions are from:
https://github.com/microsoft/MIEngine/blob/cc361a883dbb7e61de78054f838f2ea9d9f5e065/src/MICore/LaunchOptions.xsd#L603-L626

Comment thread Extension/tools/GenerateOptionsSchema.ts Outdated
Comment thread Extension/package.nls.json Outdated
For cppdbg, sourceFileMap can be used for binding breakpoints.
If keeping with the old format "<source-path>":"<target-path>", it will
always be used for breakpoints.

If you use the new:
"<compile-path>" : {
   "editorPath": "<target-path>",
   "useForBreakpoints": true
}

The sourceMap will only be used for frame enumeration.
@WardenGnaw
Andrew Wang (WardenGnaw) marked this pull request as ready for review October 19, 2020 23:16
@sean-mcmanus

Copy link
Copy Markdown
Contributor

Andrew Wang (@WardenGnaw) Is this supposed to be checked in for 1.1.0-insiders3? It's seemed to be mentioned in the changelog.

@WardenGnaw

Andrew Wang (WardenGnaw) commented Oct 22, 2020 •

Copy link
Copy Markdown
Member Author

Yep. This will need to be checked in or the new schema type will not launch the debugger since it currently assumes sourceFileMap's value is always a string

@WardenGnaw
Andrew Wang (WardenGnaw) merged commit 839eefa into master Oct 22, 2020
@bobbrow
Bob Brown (bobbrow) deleted the dev/waan/updateSourceFileMap branch January 5, 2021 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debugger enhancement Improvement to an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants