{"id":28684906,"url":"https://github.com/node-modules/jdwp","last_synced_at":"2026-03-05T13:03:24.048Z","repository":{"id":55034854,"uuid":"201244213","full_name":"node-modules/jdwp","owner":"node-modules","description":"Java Debug Wire Protocol","archived":false,"fork":false,"pushed_at":"2021-04-14T22:29:07.000Z","size":78,"stargazers_count":19,"open_issues_count":1,"forks_count":4,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-10-02T23:17:55.442Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/node-modules.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-08T11:28:58.000Z","updated_at":"2024-10-08T12:29:39.000Z","dependencies_parsed_at":"2022-08-14T09:40:53.741Z","dependency_job_id":null,"html_url":"https://github.com/node-modules/jdwp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/node-modules/jdwp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fjdwp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fjdwp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fjdwp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fjdwp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-modules","download_url":"https://codeload.github.com/node-modules/jdwp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fjdwp/sbom","scorecard":{"id":692020,"data":{"date":"2025-08-11","repo":{"name":"github.com/node-modules/jdwp","commit":"3ba67e86b61fbc95051bf0500ec959aa3073eca0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":8,"reason":"binaries present in source code","details":["Warn: binary detected: example/Test.class:1","Warn: binary detected: test/fixtures/Test.class:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-22T02:31:06.290Z","repository_id":55034854,"created_at":"2025-08-22T02:31:06.290Z","updated_at":"2025-08-22T02:31:06.290Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30127218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T12:40:50.676Z","status":"ssl_error","status_checked_at":"2026-03-05T12:39:32.209Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-14T03:07:38.499Z","updated_at":"2026-03-05T13:03:24.039Z","avatar_url":"https://github.com/node-modules.png","language":"JavaScript","readme":"# jdwp\nJava Debug Wire Protocol\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/jdwp.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/jdwp\n[travis-image]: https://img.shields.io/travis/node-modules/jdwp.svg?style=flat-square\n[travis-url]: https://travis-ci.org/node-modules/jdwp\n[codecov-image]: https://codecov.io/gh/node-modules/jdwp/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/node-modules/jdwp\n[david-image]: https://img.shields.io/david/node-modules/jdwp.svg?style=flat-square\n[david-url]: https://david-dm.org/node-modules/jdwp\n[snyk-image]: https://snyk.io/test/npm/jdwp/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/jdwp\n[download-image]: https://img.shields.io/npm/dm/jdwp.svg?style=flat-square\n[download-url]: https://npmjs.org/package/jdwp\n\n\n## Install\n\n```bash\n$ npm i jdwp --save\n```\n\n## Usage\n\nlaunch the java project and connect to jvm\n\n```js\nconst { launcher } = require('jdwp')\n\nconst vm = await launcher.launch({\n  mainClass: 'Test',\n  vmArgs: [ '-Dfile.encoding=UTF-8', '-Xdebug', '-Xnoagent', '-Djava.compiler=NONE' ],\n  classPaths: [ __dirname ],\n});\nvm.on('event', async ({ events }) =\u003e {\n  console.log(events);\n});\nawait vm.ready();\nawait vm.resume();\n```\n\nrun the [example](./example/index.js) demo\n\n```bash\n$ node example/index.js\n\nBegin debug Test.java\n-----------------------\n1  public class Test {\n2      public int plus(int a, int b) {\n3      \tint c = a + b;\n4      \treturn c;\n5      }\n6\n7      public static void main(String[] args) {\n8      \tTest test = new Test();\n9      \tint c = test.plus(1, 2);\n10      \tSystem.out.println(c);\n11          System.out.println(\"Hello world\");\n12      }\n13  }\n14\n-----------------------\n\nsuspend at breakpoint line:10\nget local variable c = 3\nset local variable c = 4\n4\nstep =\u003e Test main() line:11 Test/Test.java\nHello world\nstep =\u003e Test main() line:12 Test/Test.java\nstep =\u003e java.lang.Thread exit() line:757 java/lang/Thread/Thread.java\nstep =\u003e java.lang.Thread exit() line:758 java/lang/Thread/Thread.java\nstep =\u003e java.lang.Thread exit() line:759 java/lang/Thread/Thread.java\nstep =\u003e java.lang.Thread exit() line:762 java/lang/Thread/Thread.java\nstep =\u003e java.lang.Thread exit() line:764 java/lang/Thread/Thread.java\nstep =\u003e java.lang.Thread exit() line:765 java/lang/Thread/Thread.java\nstep =\u003e java.lang.Thread exit() line:766 java/lang/Thread/Thread.java\nstep =\u003e java.lang.Thread exit() line:767 java/lang/Thread/Thread.java\nstep =\u003e java.lang.Thread exit() line:768 java/lang/Thread/Thread.java\nstep =\u003e java.lang.Thread exit() line:769 java/lang/Thread/Thread.java\n```\n\n## Protocol\n\nhttps://docs.oracle.com/javase/7/docs/platform/jpda/jdwp/jdwp-protocol.html\n\n- VirtualMachine Command Set (1)\n  - [x] Version (1)\n  - [x] ClassesBySignature (2)\n  - [x] AllClasses (3)\n  - [x] AllThreads (4)\n  - [x] TopLevelThreadGroups (5)\n  - [x] Dispose (6)\n  - [x] IDSizes (7)\n  - [x] Suspend (8)\n  - [x] Resume (9)\n  - [x] Exit (10)\n  - [x] CreateString (11)\n  - [x] Capabilities (12)\n  - [x] ClassPaths (13)\n  - [ ] DisposeObjects (14)\n  - [x] HoldEvents (15)\n  - [x] ReleaseEvents (16)\n  - [x] CapabilitiesNew (17)\n  - [x] RedefineClasses (18)\n  - [x] SetDefaultStratum (19)\n  - [x] AllClassesWithGeneric (20)\n  - [x] InstanceCounts (21)\n- ReferenceType Command Set (2)\n  - [x] Signature (1)\n  - [x] ClassLoader (2)\n  - [x] Modifiers (3)\n  - [x] Fields (4)\n  - [x] Methods (5)\n  - [x] GetValues (6)\n  - [x] SourceFile (7)\n  - [x] NestedTypes (8)\n  - [x] Status (9)\n  - [x] Interfaces (10)\n  - [x] ClassObject (11)\n  - [x] SourceDebugExtension (12)\n  - [x] SignatureWithGeneric (13)\n  - [x] FieldsWithGeneric (14)\n  - [x] MethodsWithGeneric (15)\n  - [x] Instances (16)\n  - [x] ClassFileVersion (17)\n  - [x] ConstantPool (18)\n- ClassType Command Set (3)\n  - [x] Superclass (1)\n  - [x] SetValues (2)\n  - [x] InvokeMethod (3)\n  - [x] NewInstance (4)\n- ArrayType Command Set (4)\n  - [x] NewInstance (1)\n- InterfaceType Command Set (5)\n- Method Command Set (6)\n  - [x] LineTable (1)\n  - [x] VariableTable (2)\n  - [x] Bytecodes (3)\n  - [x] IsObsolete (4)\n  - [x] VariableTableWithGeneric (5)\n- Field Command Set (8)\n- ObjectReference Command Set (9)\n  - [x] ReferenceType (1)\n  - [x] GetValues (2)\n  - [x] SetValues (3)\n  - [x] MonitorInfo (5)\n  - [x] InvokeMethod (6)\n  - [x] DisableCollection (7)\n  - [x] EnableCollection (8)\n  - [x] IsCollected (9)\n  - [x] ReferringObjects (10)\n- StringReference Command Set (10)\n  - [x] Value (1)\n- ThreadReference Command Set (11)\n  - [x] Name (1)\n  - [x] Suspend (2)\n  - [x] Resume (3)\n  - [x] Status (4)\n  - [x] ThreadGroup (5)\n  - [x] Frames (6)\n  - [x] FrameCount (7)\n  - [ ] OwnedMonitors (8)\n  - [ ] CurrentContendedMonitor (9)\n  - [x] Stop (10)\n  - [x] Interrupt (11)\n  - [x] SuspendCount (12)\n  - [ ] OwnedMonitorsStackDepthInfo (13)\n  - [x] ForceEarlyReturn (14)\n- ThreadGroupReference Command Set (12)\n  - [x] Name (1)\n  - [x] Parent (2)\n  - [x] Children (3)\n- ArrayReference Command Set (13)\n  - [x] Length (1)\n  - [x] GetValues (2)\n  - [x] SetValues (3)\n- ClassLoaderReference Command Set (14)\n  - [x] VisibleClasses (1)\n- EventRequest Command Set (15)\n  - [x] Set (1)\n  - [x] Clear (2)\n  - [x] ClearAllBreakpoints (3)\n- StackFrame Command Set (16)\n  - [x] GetValues (1)\n  - [x] SetValues (2)\n  - [x] ThisObject (3)\n  - [x] PopFrames (4)\n- ClassObjectReference Command Set (17)\n  - [x] ReflectedType (1)\n- Event Command Set (64)\n  - [x] Composite (100)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-modules%2Fjdwp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-modules%2Fjdwp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-modules%2Fjdwp/lists"}