Skip to content

Commit e12a566

Browse files
committed
Update 如何使用 Cursor 定位故障.md
1 parent a5adc7e commit e12a566

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/AI 相关/如何使用 Cursor 定位故障.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
#ai #调试
1+
---
2+
tags:
3+
- ai
4+
- 调试
5+
---
26
## 背景
3-
47
LLM 能分析静态代码结构, 但不了解其运行状态, 需要开发者为其提供更多的上下文
58
## 日志
6-
79
开发者调试时需要打断点分析日志输出, 那么日志输出也能作为 LLM 调试故障的上下文来源, 只需要让 LLM 在关键逻辑路径上添加日志点
810

911
```
1012
xxx 功能存在 xxx 问题, 添加相关日志点
1113
```
1214

1315
执行代码, 日志输出后, 复制到上下文窗口交给 LLM 分析
14-
1516
## 浏览器
16-
1717
使用 [@browser](https://cursor.com/cn/docs/agent/browser) 指令, 让 Cursor 自动打开浏览器查看日志, 避免了手动复制日志输出的操作
1818

1919
```

0 commit comments

Comments
 (0)