Skip to content

Commit

Permalink
Review and move polyglot-debug demo to archive category
Browse files Browse the repository at this point in the history
  • Loading branch information
olyagpl committed Dec 16, 2024
1 parent eed7ac0 commit 2f3fe9b
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 47 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/polyglot-debug.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: polyglot-debug
name: archive/polyglot-debug
on:
push:
paths:
- 'polyglot-debug/**'
- 'archive/polyglot-debug/**'
- '.github/workflows/polyglot-debug.yml'
pull_request:
paths:
- 'polyglot-debug/**'
- 'archive/polyglot-debug/**'
- '.github/workflows/polyglot-debug.yml'
schedule:
- cron: "0 0 1 * *" # run every month
Expand All @@ -28,6 +28,6 @@ jobs:
cache: 'maven'
- name: Run 'polyglot-debug'
run: |
cd polyglot-debug
cd archive/polyglot-debug
mvn --no-transfer-progress clean package
mvn exec:exec
33 changes: 33 additions & 0 deletions archive/polyglot-debug/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Debugging a Java with JavaScript Embedding Application

GraalVM supports debugging of [polyglot applications](https://www.graalvm.org/latest/reference-manual/polyglot-programming/).
You can attach compatible debuggers such as Chrome Developer Tools to a process running on GraalVM.
To debug guest language applications, pass the `--inspect` option to the command line launcher.

## Prerequisites

Download and install the GraalVM JDK using [SDKMAN!](https://sdkman.io/).
```bash
sdk install java 21.0.1-graal
```
For other installation options, visit the [Downloads page](https://www.graalvm.org/downloads/).

## Build and Run the Application

2. Clone the repository and navigate into the `polyglot-debug` directory:
```bash
git clone https://github.com/graalvm/graalvm-demos
```
```bash
cd graalvm-demos/archive/polyglot-debug
```
3. Build the application using Maven:
```bash
mvn clean package
```
4. Run this application with the following command:
```bash
mvn exec:exec
```

Learn more about [debugging with Chrome Debugger](https://www.graalvm.org/latest/tools/chrome-debugger/) at the website.
File renamed without changes.
43 changes: 0 additions & 43 deletions polyglot-debug/README.MD

This file was deleted.

0 comments on commit 2f3fe9b

Please sign in to comment.