Add support for specifying custom debugger rules in config file#197
Open
fatshark-awr wants to merge 1 commit into
Open
Add support for specifying custom debugger rules in config file#197fatshark-awr wants to merge 1 commit into
fatshark-awr wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a supplement or alternative to #196. Would avoid the need to update the extension if extra debugger rules are needed by someone in the future.
Copied from the readme additions:
Custom Debugger Rules
The extension ships with built-in support for common C/C++ debugger flavors (Windows Local/Remote, Linux, WSL, Android, Oasis NX, etc.). If your project uses a debugger flavor that is not listed above, you can register it via a JSON config file without modifying the extension.
Create a file at:
The file contains a JSON array of rule objects. Each rule maps a debugger flavor (the
DebuggerFlavorvalue in your.vcxproj.user) to the project properties the extension should read from and write to:[ { "RuleName": "MyCustomDebugger", "ArgsPropName": "RemoteDebuggerCommandArguments", "EnvPropName": "RemoteDebuggerEnvironment", "WorkDirPropName": "RemoteDebuggerWorkingDirectory", "LaunchAppPropName": "RemoteDebuggerCommand" } ]RuleNameDebuggerFlavorproperty in the.vcxproj.userfile.ArgsPropNameEnvPropNameWorkDirPropNameLaunchAppPropNameRules with a
RuleNamethat duplicates a built-in rule are ignored. Errors loading the file are logged to the Visual Studio Activity Log.To find the correct
RuleNamefor your debugger, set the debugger flavor and some arguments in Visual Studio, save, and inspect the<DebuggerFlavor>value underDebuggerGeneralPropertiesin your.vcxproj.userfile.