Skip to content
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

[cppdbg] Support new sourceFileMap schema #6319

Merged
merged 6 commits into from
Oct 22, 2020

Conversation

WardenGnaw
Copy link
Member

@WardenGnaw WardenGnaw commented Oct 15, 2020

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

@WardenGnaw WardenGnaw added debugger enhancement Improvement to an existing feature labels Oct 15, 2020
@WardenGnaw WardenGnaw self-assigned this Oct 15, 2020
Extension/tools/GenerateOptionsSchema.ts Outdated Show resolved Hide resolved
Extension/package.nls.json Outdated Show resolved Hide resolved
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 WardenGnaw marked this pull request as ready for review October 19, 2020 23:16
@sean-mcmanus
Copy link
Collaborator

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

@WardenGnaw
Copy link
Member Author

WardenGnaw commented Oct 22, 2020

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 WardenGnaw merged commit 839eefa into master Oct 22, 2020
@bobbrow 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