技能 编程开发 Sentry 错误捕获测试

Sentry 错误捕获测试

v20260307
sentry-hello-world
通过在 Sentry 上触发首个测试错误,检查仪表盘中的堆栈、元数据和用户上下文,验证 SDK 集成及事件捕获是否正确。
获取技能
302 次下载
概览

Sentry Hello World

Prerequisites

  • Sentry SDK installed and initialized
  • Valid DSN configured
  • Network access to Sentry servers

Instructions

  1. Open https://sentry.io
  2. Navigate to your project
  3. Check Issues tab for the test error
  4. Verify event details are correct

See {baseDir}/references/implementation.md for detailed implementation guide.

Output

  • Test error visible in Sentry dashboard
  • Event contains stack trace and metadata
  • User context and tags attached to event

Error Handling

See {baseDir}/references/errors.md for comprehensive error handling.

Examples

See {baseDir}/references/examples.md for detailed examples.

Resources

信息
Category 编程开发
Name sentry-hello-world
版本 v20260307
大小 2.41KB
更新时间 2026-03-10
语言