-
Notifications
You must be signed in to change notification settings - Fork 11
Feature/java adapter #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
13cdb70
chore: initialize project configuration
a5b0982
feat: add support for java/jdb debugging
fa00174
chore: add java adapter to optionalDependencies
ac95bc8
fix: resolve Java attach test failures
14eaf4c
fix: handle different DAP initialized event sequences
8c354d9
fix: align java adapter with contribution code style guidelines
a2f970b
fix: skip docker build gracefully when buildx is unavailable
b3267f8
fix: skip docker tests gracefully when buildx is unavailable
e1d3c7a
fix: redirect pre-push hook output to log file to prevent SIGPIPE
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
|
|
||
| public class AttachTestProgram { | ||
| public static void main(String[] args) { | ||
| System.out.println("AttachTestProgram started - waiting for debugger..."); | ||
|
|
||
| int counter = 0; | ||
| while (true) { | ||
| counter++; | ||
| System.out.println("Counter: " + counter); | ||
|
|
||
| try { | ||
| Thread.sleep(1000); | ||
| } catch (InterruptedException e) { | ||
| break; | ||
| } | ||
|
|
||
| // Breakpoint target line | ||
| if (counter >= 5) { | ||
| System.out.println("Reached counter threshold: " + counter); | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| /** | ||
| * Comprehensive test script for Java debugging | ||
| */ | ||
| public class TestJavaDebug { | ||
|
|
||
| /** | ||
| * Calculate factorial recursively | ||
| */ | ||
| public static int factorial(int n) { | ||
| if (n <= 1) { | ||
| return 1; | ||
| } | ||
| return n * factorial(n - 1); | ||
| } | ||
|
|
||
| /** | ||
| * Sum an array of numbers | ||
| */ | ||
| public static int sumArray(int[] numbers) { | ||
| int total = 0; | ||
| for (int num : numbers) { | ||
| total += num; | ||
| } | ||
| return total; | ||
| } | ||
|
|
||
| /** | ||
| * Process data with multiple operations | ||
| */ | ||
| public static int[] processData(int[] data) { | ||
| int[] result = new int[data.length]; | ||
| for (int i = 0; i < data.length; i++) { | ||
| int processed = data[i] * 2; | ||
| result[i] = processed; | ||
| } | ||
| return result; | ||
| } | ||
|
|
||
| /** | ||
| * Main entry point | ||
| */ | ||
| public static void main(String[] args) { | ||
| // Test variables | ||
| int x = 10; | ||
| int y = 20; | ||
| int z = x + y; | ||
|
|
||
| // Test factorial | ||
| int factResult = factorial(5); | ||
| System.out.println("Factorial of 5: " + factResult); | ||
|
|
||
| // Test array operations | ||
| int[] numbers = {1, 2, 3, 4, 5}; | ||
| int sumResult = sumArray(numbers); | ||
| System.out.println("Sum of numbers: " + sumResult); | ||
|
|
||
| // Test data processing | ||
| int[] data = {10, 20, 30}; | ||
| int[] processed = processData(data); | ||
| System.out.print("Processed data: ["); | ||
| for (int i = 0; i < processed.length; i++) { | ||
| System.out.print(processed[i]); | ||
| if (i < processed.length - 1) { | ||
| System.out.print(", "); | ||
| } | ||
| } | ||
| System.out.println("]"); | ||
|
|
||
| // Final computation | ||
| int finalResult = z * factResult; | ||
| System.out.println("Final result: " + finalResult); | ||
|
|
||
| System.out.println("Script completed with result: " + finalResult); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.