Skip to content

Commit 2f3fe9b

Browse files
committed
Review and move polyglot-debug demo to archive category
1 parent eed7ac0 commit 2f3fe9b

File tree

7 files changed

+37
-47
lines changed

7 files changed

+37
-47
lines changed

.github/workflows/polyglot-debug.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: polyglot-debug
1+
name: archive/polyglot-debug
22
on:
33
push:
44
paths:
5-
- 'polyglot-debug/**'
5+
- 'archive/polyglot-debug/**'
66
- '.github/workflows/polyglot-debug.yml'
77
pull_request:
88
paths:
9-
- 'polyglot-debug/**'
9+
- 'archive/polyglot-debug/**'
1010
- '.github/workflows/polyglot-debug.yml'
1111
schedule:
1212
- cron: "0 0 1 * *" # run every month
@@ -28,6 +28,6 @@ jobs:
2828
cache: 'maven'
2929
- name: Run 'polyglot-debug'
3030
run: |
31-
cd polyglot-debug
31+
cd archive/polyglot-debug
3232
mvn --no-transfer-progress clean package
3333
mvn exec:exec

archive/polyglot-debug/README.MD

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Debugging a Java with JavaScript Embedding Application
2+
3+
GraalVM supports debugging of [polyglot applications](https://www.graalvm.org/latest/reference-manual/polyglot-programming/).
4+
You can attach compatible debuggers such as Chrome Developer Tools to a process running on GraalVM.
5+
To debug guest language applications, pass the `--inspect` option to the command line launcher.
6+
7+
## Prerequisites
8+
9+
Download and install the GraalVM JDK using [SDKMAN!](https://sdkman.io/).
10+
```bash
11+
sdk install java 21.0.1-graal
12+
```
13+
For other installation options, visit the [Downloads page](https://www.graalvm.org/downloads/).
14+
15+
## Build and Run the Application
16+
17+
2. Clone the repository and navigate into the `polyglot-debug` directory:
18+
```bash
19+
git clone https://github.com/graalvm/graalvm-demos
20+
```
21+
```bash
22+
cd graalvm-demos/archive/polyglot-debug
23+
```
24+
3. Build the application using Maven:
25+
```bash
26+
mvn clean package
27+
```
28+
4. Run this application with the following command:
29+
```bash
30+
mvn exec:exec
31+
```
32+
33+
Learn more about [debugging with Chrome Debugger](https://www.graalvm.org/latest/tools/chrome-debugger/) at the website.
File renamed without changes.

polyglot-debug/README.MD

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)