The identifier for the desired setting
The value of the setting
Will throw if the setting does not exist
// Get a boolean indicating if debugger is configured to auto run to a label on reset
let autoRun = session.settings.get("AutoRunToLabelOnReset");
// print the label (a string) to which the debugger will run to on a restart or reset (if configured to do so)
console.log(session.settings.get("AutoRunToLabelName"));
Get a detailed list of all debugger settings.
A list of objects which detail each debugger setting
let settings = session.settings.getDetailedSettings();
// print details of settings
for (const setting of settings) {
console.log(`${setting.id}:`);
console.log(` type: ${setting.type}`);
console.log(` name: ${setting.name}`);
console.log(` value: ${setting.value}`);
if (setting.allowedValues) {
console.log(` allowedValues: ${JSON.stringify(setting.allowedValues)}`);
}
if (setting.allowedRange) {
console.log(` allowedRange: [${setting.allowedRange.min}, ${setting.allowedRange.max}]`);
}
console.log("");
}
Get the value of a specific debugger setting