This patch adds new SBDebugger::GetSetting() API which
enables client to access settings as SBStructuredData.
Implementation wise, a new ToJSON() virtual function is added to OptionValue
class so that each concrete child class can override and provides its
own JSON representation. This patch aims to define the APIs and implement
a common set of OptionValue child classes, leaving the remaining for
future patches.
This patch is used later by auto deduce source map from source line breakpoint
feature for testing generated source map entries.
Do we want to actually have something more like this:
That allows us to get any setting as structured data? We have a lot of settings and I would rather not have an API for each one of these added to the public API as we need them.
Eventually we could also have:
This would allow the output to contain multiple settings if needed. Hopefully the output would be in the format of:
This would allow us to export all settings, and then import them.