A debugging solution for Karate API tests supporting both VS Code and IntelliJ IDEA.
karate-debug/
├── shared/debug-server/ # Java DAP server (shared by both IDEs)
├── vscode/ # VS Code extension (TypeScript)
├── intellij/ # IntelliJ plugin (Java/Kotlin Gradle)
├── test-fixtures/ # Sample Karate project for testing
└── .github/workflows/ # CI/CD workflows
- Node.js 20+
- Java 21+
- Maven 3.6+
# Build shared debug server
cd shared/debug-server && mvn clean package -q
# Copy JAR to both extensions
cp shared/debug-server/target/karate-debug-server-1.0.0.jar vscode/resources/
cp shared/debug-server/target/karate-debug-server-1.0.0.jar intellij/src/main/resources/
# Build VS Code extension
cd vscode && npm install && npm run compile && npm run package
# Build IntelliJ plugin
cd intellij && ./gradlew buildPlugin# VS Code only
cd vscode && npm run compile
# IntelliJ only
cd intellij && ./gradlew buildPlugin
# Run IntelliJ sandbox
cd intellij && ./gradlew runIdeReleases are triggered manually via GitHub Actions:
- Go to Actions > Release
- Click Run workflow
- Select platform:
vscode,intellij, orboth - Optionally specify version (defaults to current)
| Document | Location |
|---|---|
| VS Code README | vscode/README.md |
| VS Code Changelog | vscode/CHANGELOG.md |
| IntelliJ README | intellij/README.md |
| IntelliJ Changelog | intellij/CHANGELOG.md |
| Internal Dev Guide | .augment-guidelines |
- VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=j8d.karate-debug
- JetBrains Marketplace: https://plugins.jetbrains.com/plugin/26605-karate-debug
- GitHub Repository: https://github.com/j8d/karate-debug
- Report Issues: https://github.com/j8d/karate-debug/issues