debug-run 0.1.0 → 0.5.2

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 CHANGED
@@ -25,17 +25,38 @@ Agents can write and run code, but when something goes wrong, they're blind. The
25
25
  ## Installation
26
26
 
27
27
  ```bash
28
- # Clone and install
28
+ # Install globally
29
+ npm install -g debug-run
30
+
31
+ # Or run directly with npx
32
+ npx debug-run --help
33
+ ```
34
+
35
+ ### Claude Code Skill (Recommended)
36
+
37
+ To enable Claude Code to use debug-run effectively, copy the skill to your skills directory:
38
+
39
+ ```bash
40
+ # Create skills directory if it doesn't exist
41
+ mkdir -p ~/.claude/skills
42
+
43
+ # Copy the debug-run skill
44
+ cp -r node_modules/debug-run/.claude/skills/debug-run ~/.claude/skills/
45
+ ```
46
+
47
+ This installs the skill which teaches Claude how to use debug-run for debugging .NET, Python, and TypeScript applications. The skill includes:
48
+ - `SKILL.md` - Main skill with options reference and best practices
49
+ - `DOTNET.md` - .NET-specific guide (vsdbg, ASP.NET, NUnit)
50
+ - `PYTHON.md` - Python-specific guide (debugpy)
51
+ - `TYPESCRIPT.md` - TypeScript/JavaScript guide (js-debug)
52
+
53
+ ### Development Setup
54
+
55
+ ```bash
29
56
  git clone https://github.com/Chris-Cullins/debug-run.git
30
57
  cd debug-run
31
58
  npm install
32
-
33
- # Run via tsx (development)
34
- npx tsx ./src/index.ts --help
35
-
36
- # Or build and run
37
- npm run build
38
- node dist/index.js --help
59
+ npx tsx ./src/index.ts --help # run from source
39
60
  ```
40
61
 
41
62
  ## Quick Start
@@ -43,13 +64,13 @@ node dist/index.js --help
43
64
  ### List available adapters
44
65
 
45
66
  ```bash
46
- npx tsx ./src/index.ts list-adapters
67
+ npx debug-run list-adapters
47
68
  ```
48
69
 
49
70
  ### Debug a .NET application
50
71
 
51
72
  ```bash
52
- npx tsx ./src/index.ts ./bin/Debug/net8.0/MyApp.dll \
73
+ npx debug-run ./bin/Debug/net8.0/MyApp.dll \
53
74
  -a dotnet \
54
75
  -b "src/OrderService.cs:45" \
55
76
  --pretty
@@ -58,7 +79,7 @@ npx tsx ./src/index.ts ./bin/Debug/net8.0/MyApp.dll \
58
79
  ### Debug Python
59
80
 
60
81
  ```bash
61
- npx tsx ./src/index.ts ./main.py \
82
+ npx debug-run ./main.py \
62
83
  -a python \
63
84
  -b "processor.py:123" \
64
85
  -e "data.count" \
@@ -68,7 +89,7 @@ npx tsx ./src/index.ts ./main.py \
68
89
  ### Debug Node.js
69
90
 
70
91
  ```bash
71
- npx tsx ./src/index.ts ./dist/index.js \
92
+ npx debug-run ./dist/index.js \
72
93
  -a node \
73
94
  -b "src/handler.ts:30" \
74
95
  --pretty
@@ -182,7 +203,7 @@ debug-run outputs newline-delimited JSON (NDJSON) events:
182
203
  ### Checking adapter status
183
204
 
184
205
  ```bash
185
- $ npx tsx ./src/index.ts list-adapters
206
+ $ npx debug-run list-adapters
186
207
 
187
208
  Available debug adapters:
188
209
 
@@ -208,7 +229,7 @@ Available debug adapters:
208
229
  ### Investigate a test failure
209
230
 
210
231
  ```bash
211
- npx tsx ./src/index.ts ./bin/Debug/net8.0/TestApp.dll \
232
+ npx debug-run ./bin/Debug/net8.0/TestApp.dll \
212
233
  -a dotnet \
213
234
  -b "src/InventoryService.cs:34" \
214
235
  -e "requestedQuantity" \
@@ -219,7 +240,7 @@ npx tsx ./src/index.ts ./bin/Debug/net8.0/TestApp.dll \
219
240
  ### Step through code
220
241
 
221
242
  ```bash
222
- npx tsx ./src/index.ts ./app.dll \
243
+ npx debug-run ./app.dll \
223
244
  -a dotnet \
224
245
  -b "src/PricingService.cs:45" \
225
246
  --steps 10 \
@@ -230,7 +251,7 @@ npx tsx ./src/index.ts ./app.dll \
230
251
  ### Break on exceptions
231
252
 
232
253
  ```bash
233
- npx tsx ./src/index.ts ./app.dll \
254
+ npx debug-run ./app.dll \
234
255
  -a dotnet \
235
256
  --break-on-exception "all" \
236
257
  --pretty
@@ -239,7 +260,7 @@ npx tsx ./src/index.ts ./app.dll \
239
260
  ### Conditional breakpoint
240
261
 
241
262
  ```bash
242
- npx tsx ./src/index.ts ./app.dll \
263
+ npx debug-run ./app.dll \
243
264
  -a dotnet \
244
265
  -b "src/OrderService.cs:67?order.Total > 1000" \
245
266
  --pretty
@@ -250,7 +271,7 @@ npx tsx ./src/index.ts ./app.dll \
250
271
  Declare invariants that must remain true. The debugger halts immediately when any assertion fails:
251
272
 
252
273
  ```bash
253
- npx tsx ./src/index.ts ./app.dll \
274
+ npx debug-run ./app.dll \
254
275
  -a dotnet \
255
276
  -b "src/OrderService.cs:45" \
256
277
  --assert "order.Total >= 0" \
@@ -272,7 +293,7 @@ Assertions are checked at breakpoints, during stepping, and during trace mode.
272
293
  Automatically step through code after hitting a breakpoint:
273
294
 
274
295
  ```bash
275
- npx tsx ./src/index.ts ./app.dll \
296
+ npx debug-run ./app.dll \
276
297
  -a dotnet \
277
298
  -b "src/OrderService.cs:45" \
278
299
  --trace \
@@ -295,7 +316,7 @@ import subprocess
295
316
  import json
296
317
 
297
318
  result = subprocess.run([
298
- "npx", "tsx", "./src/index.ts",
319
+ "npx", "debug-run",
299
320
  "./bin/Debug/net8.0/MyApp.dll",
300
321
  "-a", "dotnet",
301
322
  "-b", "src/Service.cs:45",
@@ -316,7 +337,7 @@ for line in result.stdout.strip().split('\n'):
316
337
  # Install dependencies
317
338
  npm install
318
339
 
319
- # Run in development mode
340
+ # Run from source
320
341
  npx tsx ./src/index.ts [args...]
321
342
 
322
343
  # Type check