gdb: Adjust Settings UI

This commit is contained in:
Coxxs 2025-06-23 17:59:53 +08:00
parent b1c1ad54e8
commit 669179ca2e
2 changed files with 40 additions and 13 deletions

View file

@ -25053,7 +25053,7 @@
"ar_SA": "", "ar_SA": "",
"de_DE": "", "de_DE": "",
"el_GR": "", "el_GR": "",
"en_US": "Debug (WARNING: For developer use only)", "en_US": "Debug",
"es_ES": "", "es_ES": "",
"fr_FR": "", "fr_FR": "",
"he_IL": "", "he_IL": "",
@ -25073,7 +25073,32 @@
} }
}, },
{ {
"ID": "EnableGDBStub", "ID": "SettingsTabDebugNote",
"Translations": {
"ar_SA": "",
"de_DE": "",
"el_GR": "",
"en_US": "WARNING: For developer use only, will reduce performance",
"es_ES": "",
"fr_FR": "",
"he_IL": "",
"it_IT": "",
"ja_JP": "",
"ko_KR": "",
"no_NO": "",
"pl_PL": "",
"pt_BR": "",
"ru_RU": "",
"sv_SE": "",
"th_TH": "",
"tr_TR": "",
"uk_UA": "",
"zh_CN": "",
"zh_TW": ""
}
},
{
"ID": "SettingsTabDebugEnableGDBStub",
"Translations": { "Translations": {
"ar_SA": "", "ar_SA": "",
"de_DE": "", "de_DE": "",
@ -25098,7 +25123,7 @@
} }
}, },
{ {
"ID": "GDBStubToggleTooltip", "ID": "SettingsTabDebugGDBStubToggleTooltip",
"Translations": { "Translations": {
"ar_SA": "", "ar_SA": "",
"de_DE": "", "de_DE": "",
@ -25123,12 +25148,12 @@
} }
}, },
{ {
"ID": "GDBStubPort", "ID": "SettingsTabDebugGDBStubPort",
"Translations": { "Translations": {
"ar_SA": "", "ar_SA": "",
"de_DE": "", "de_DE": "",
"el_GR": "", "el_GR": "",
"en_US": "GDB stub port:", "en_US": "GDB Stub Port:",
"es_ES": "", "es_ES": "",
"fr_FR": "", "fr_FR": "",
"he_IL": "", "he_IL": "",
@ -25148,12 +25173,12 @@
} }
}, },
{ {
"ID": "DebuggerSuspendOnStart", "ID": "SettingsTabDebugSuspendOnStart",
"Translations": { "Translations": {
"ar_SA": "", "ar_SA": "",
"de_DE": "", "de_DE": "",
"el_GR": "", "el_GR": "",
"en_US": "Suspend application on start", "en_US": "Suspend Application on Start",
"es_ES": "", "es_ES": "",
"fr_FR": "", "fr_FR": "",
"he_IL": "", "he_IL": "",
@ -25173,7 +25198,7 @@
} }
}, },
{ {
"ID": "DebuggerSuspendOnStartTooltip", "ID": "SettingsTabDebugSuspendOnStartTooltip",
"Translations": { "Translations": {
"ar_SA": "", "ar_SA": "",
"de_DE": "", "de_DE": "",

View file

@ -26,19 +26,21 @@
Orientation="Vertical" Orientation="Vertical"
Spacing="10"> Spacing="10">
<TextBlock Classes="h1" Text="{ext:Locale SettingsTabDebugTitle}" /> <TextBlock Classes="h1" Text="{ext:Locale SettingsTabDebugTitle}" />
<TextBlock Foreground="{DynamicResource SecondaryTextColor}" Text="{ext:Locale SettingsTabDebugNote}" />
<StackPanel <StackPanel
Margin="10,0,0,0" Margin="10,0,0,0"
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
Orientation="Vertical"> Orientation="Vertical">
<CheckBox IsChecked="{Binding EnableGdbStub}"> <CheckBox IsChecked="{Binding EnableGdbStub}">
<TextBlock Text="{ext:Locale EnableGDBStub}" <TextBlock Text="{ext:Locale SettingsTabDebugEnableGDBStub}"
ToolTip.Tip="{ext:Locale GDBStubToggleTooltip}" /> ToolTip.Tip="{ext:Locale SettingsTabDebugGDBStubToggleTooltip}" />
</CheckBox> </CheckBox>
</StackPanel> </StackPanel>
<StackPanel <StackPanel
Margin="10,0,0,0"
Orientation="Horizontal"> Orientation="Horizontal">
<TextBlock VerticalAlignment="Center" <TextBlock VerticalAlignment="Center"
Text="{ext:Locale GDBStubPort}" Text="{ext:Locale SettingsTabDebugGDBStubPort}"
Width="250" /> Width="250" />
<ui:NumberBox Value="{Binding GDBStubPort}" <ui:NumberBox Value="{Binding GDBStubPort}"
Width="350" Width="350"
@ -54,8 +56,8 @@
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
Orientation="Vertical"> Orientation="Vertical">
<CheckBox IsChecked="{Binding DebuggerSuspendOnStart}"> <CheckBox IsChecked="{Binding DebuggerSuspendOnStart}">
<TextBlock Text="{ext:Locale DebuggerSuspendOnStart}" <TextBlock Text="{ext:Locale SettingsTabDebugSuspendOnStart}"
ToolTip.Tip="{ext:Locale DebuggerSuspendOnStartTooltip}" /> ToolTip.Tip="{ext:Locale SettingsTabDebugSuspendOnStartTooltip}" />
</CheckBox> </CheckBox>
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>