debugFileSources.tsx 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. export const DEBUG_SOURCE_LAYOUTS = {
  2. native: 'Platform-Specific (SymStore / GDB / LLVM)',
  3. symstore: 'Microsoft SymStore',
  4. symstore_index2: 'Microsoft SymStore (with index2.txt)',
  5. ssqp: 'Microsoft SSQP',
  6. unified: 'Unified Symbol Server Layout',
  7. debuginfod: 'debuginfod',
  8. } as const;
  9. export const DEBUG_SOURCE_CASINGS = {
  10. default: 'Default (mixed case)',
  11. uppercase: 'Uppercase',
  12. lowercase: 'Lowercase',
  13. } as const;
  14. export const AWS_REGIONS = [
  15. ['us-east-2', 'US East (Ohio)'],
  16. ['us-east-1', 'US East (N. Virginia)'],
  17. ['us-west-1', 'US West (N. California)'],
  18. ['us-west-2', 'US West (Oregon)'],
  19. ['ap-east-1', 'Asia Pacific (Hong Kong)'],
  20. ['ap-south-1', 'Asia Pacific (Mumbai)'],
  21. // ['ap-northeast-3', 'Asia Pacific (Osaka-Local)'],
  22. ['ap-northeast-2', 'Asia Pacific (Seoul)'],
  23. ['ap-southeast-1', 'Asia Pacific (Singapore)'],
  24. ['ap-southeast-2', 'Asia Pacific (Sydney)'],
  25. ['ap-northeast-1', 'Asia Pacific (Tokyo)'],
  26. ['ca-central-1', 'Canada (Central)'],
  27. ['cn-north-1', 'China (Beijing)'],
  28. ['cn-northwest-1', 'China (Ningxia)'],
  29. ['eu-central-1', 'EU (Frankfurt)'],
  30. ['eu-west-1', 'EU (Ireland)'],
  31. ['eu-west-2', 'EU (London)'],
  32. ['eu-west-3', 'EU (Paris)'],
  33. ['eu-north-1', 'EU (Stockholm)'],
  34. ['sa-east-1', 'South America (São Paulo)'],
  35. ['us-gov-east-1', 'AWS GovCloud (US-East)'],
  36. ['us-gov-west-1', 'AWS GovCloud (US)'],
  37. ] as const;
  38. export const DEBUG_SOURCE_TYPES = {
  39. gcs: 'Google Cloud Storage',
  40. http: 'SymbolServer (HTTP)',
  41. s3: 'Amazon S3',
  42. appStoreConnect: 'App Store Connect',
  43. } as const;
  44. export function getDebugSourceName(type: keyof typeof DEBUG_SOURCE_TYPES) {
  45. return DEBUG_SOURCE_TYPES[type] ?? 'Unknown';
  46. }