@iflow-ai/iflow-cli 0.2.12-beta.4 → 0.2.12-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -0
- package/bundle/iflow-cli-vscode-ide-companion-0.2.4.vsix +0 -0
- package/bundle/iflow.js +867 -862
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -168,6 +168,61 @@ Here is a settings demo file:
|
|
|
168
168
|
}
|
|
169
169
|
```
|
|
170
170
|
|
|
171
|
+
## 🐛 Crash Debugging
|
|
172
|
+
|
|
173
|
+
If you encounter runtime crashes, you can enable crash diagnostics to collect detailed information for debugging:
|
|
174
|
+
|
|
175
|
+
### Enable Crash Diagnostics
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
# Enable crash debugging mode
|
|
179
|
+
DEBUG=true iflow
|
|
180
|
+
|
|
181
|
+
# Or with additional Node.js debugging flags
|
|
182
|
+
DEBUG=true node --trace-warnings --trace-uncaught node_modules/.bin/iflow
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### System Configuration for Core Dumps
|
|
186
|
+
|
|
187
|
+
**macOS:**
|
|
188
|
+
```bash
|
|
189
|
+
# Enable core dumps
|
|
190
|
+
ulimit -c unlimited
|
|
191
|
+
sudo sysctl -w kern.coredump=1
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**Linux:**
|
|
195
|
+
```bash
|
|
196
|
+
# Configure core dump pattern and enable unlimited core dumps
|
|
197
|
+
echo 'core.%p.%t' | sudo tee /proc/sys/kernel/core_pattern
|
|
198
|
+
ulimit -c unlimited
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Crash Information Collection
|
|
202
|
+
|
|
203
|
+
When `DEBUG=true` is enabled, the system will:
|
|
204
|
+
|
|
205
|
+
1. **Generate crash files** - Create `crash-[timestamp]-[pid].json` files containing:
|
|
206
|
+
- Complete error stack trace
|
|
207
|
+
- Memory usage information
|
|
208
|
+
- Process information (PID, uptime, Node.js version)
|
|
209
|
+
- Environment variables
|
|
210
|
+
- Platform and architecture details
|
|
211
|
+
|
|
212
|
+
2. **Create core dumps** - Generate system core dumps for advanced debugging
|
|
213
|
+
|
|
214
|
+
3. **Monitor warnings** - Log Node.js warnings and unhandled promise rejections
|
|
215
|
+
|
|
216
|
+
### Analyzing Crash Files
|
|
217
|
+
|
|
218
|
+
The generated crash files contain structured JSON data that can help identify:
|
|
219
|
+
- The exact error that caused the crash
|
|
220
|
+
- Memory usage patterns before the crash
|
|
221
|
+
- System environment and configuration
|
|
222
|
+
- Call stack at the time of crash
|
|
223
|
+
|
|
224
|
+
Share these files when reporting crash issues for faster debugging assistance.
|
|
225
|
+
|
|
171
226
|
## GitHub Actions
|
|
172
227
|
|
|
173
228
|
You can also use iFlow CLI in your GitHub Actions workflows with the community-maintained action: [iflow-cli-action](https://github.com/vibe-ideas/iflow-cli-action)
|
|
Binary file
|