npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

jdwp

v0.1.0

Published

Java Debug Wire Protocol

Readme

jdwp

Java Debug Wire Protocol

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i jdwp --save

Usage

launch the java project and connect to jvm

const { launcher } = require('jdwp')

const vm = await launcher.launch({
  mainClass: 'Test',
  vmArgs: [ '-Dfile.encoding=UTF-8', '-Xdebug', '-Xnoagent', '-Djava.compiler=NONE' ],
  classPaths: [ __dirname ],
});
vm.on('event', async ({ events }) => {
  console.log(events);
});
await vm.ready();
await vm.resume();

run the example demo

$ node example/index.js

Begin debug Test.java
-----------------------
1  public class Test {
2      public int plus(int a, int b) {
3      	int c = a + b;
4      	return c;
5      }
6
7      public static void main(String[] args) {
8      	Test test = new Test();
9      	int c = test.plus(1, 2);
10      	System.out.println(c);
11          System.out.println("Hello world");
12      }
13  }
14
-----------------------

suspend at breakpoint line:10
get local variable c = 3
set local variable c = 4
4
step => Test main() line:11 Test/Test.java
Hello world
step => Test main() line:12 Test/Test.java
step => java.lang.Thread exit() line:757 java/lang/Thread/Thread.java
step => java.lang.Thread exit() line:758 java/lang/Thread/Thread.java
step => java.lang.Thread exit() line:759 java/lang/Thread/Thread.java
step => java.lang.Thread exit() line:762 java/lang/Thread/Thread.java
step => java.lang.Thread exit() line:764 java/lang/Thread/Thread.java
step => java.lang.Thread exit() line:765 java/lang/Thread/Thread.java
step => java.lang.Thread exit() line:766 java/lang/Thread/Thread.java
step => java.lang.Thread exit() line:767 java/lang/Thread/Thread.java
step => java.lang.Thread exit() line:768 java/lang/Thread/Thread.java
step => java.lang.Thread exit() line:769 java/lang/Thread/Thread.java

Protocol

https://docs.oracle.com/javase/7/docs/platform/jpda/jdwp/jdwp-protocol.html

  • VirtualMachine Command Set (1)
    • [x] Version (1)
    • [x] ClassesBySignature (2)
    • [x] AllClasses (3)
    • [x] AllThreads (4)
    • [x] TopLevelThreadGroups (5)
    • [x] Dispose (6)
    • [x] IDSizes (7)
    • [x] Suspend (8)
    • [x] Resume (9)
    • [x] Exit (10)
    • [x] CreateString (11)
    • [x] Capabilities (12)
    • [x] ClassPaths (13)
    • [ ] DisposeObjects (14)
    • [x] HoldEvents (15)
    • [x] ReleaseEvents (16)
    • [x] CapabilitiesNew (17)
    • [x] RedefineClasses (18)
    • [x] SetDefaultStratum (19)
    • [x] AllClassesWithGeneric (20)
    • [x] InstanceCounts (21)
  • ReferenceType Command Set (2)
    • [x] Signature (1)
    • [x] ClassLoader (2)
    • [x] Modifiers (3)
    • [x] Fields (4)
    • [x] Methods (5)
    • [x] GetValues (6)
    • [x] SourceFile (7)
    • [x] NestedTypes (8)
    • [x] Status (9)
    • [x] Interfaces (10)
    • [x] ClassObject (11)
    • [x] SourceDebugExtension (12)
    • [x] SignatureWithGeneric (13)
    • [x] FieldsWithGeneric (14)
    • [x] MethodsWithGeneric (15)
    • [x] Instances (16)
    • [x] ClassFileVersion (17)
    • [x] ConstantPool (18)
  • ClassType Command Set (3)
    • [x] Superclass (1)
    • [x] SetValues (2)
    • [x] InvokeMethod (3)
    • [x] NewInstance (4)
  • ArrayType Command Set (4)
    • [x] NewInstance (1)
  • InterfaceType Command Set (5)
  • Method Command Set (6)
    • [x] LineTable (1)
    • [x] VariableTable (2)
    • [x] Bytecodes (3)
    • [x] IsObsolete (4)
    • [x] VariableTableWithGeneric (5)
  • Field Command Set (8)
  • ObjectReference Command Set (9)
    • [x] ReferenceType (1)
    • [x] GetValues (2)
    • [x] SetValues (3)
    • [x] MonitorInfo (5)
    • [x] InvokeMethod (6)
    • [x] DisableCollection (7)
    • [x] EnableCollection (8)
    • [x] IsCollected (9)
    • [x] ReferringObjects (10)
  • StringReference Command Set (10)
    • [x] Value (1)
  • ThreadReference Command Set (11)
    • [x] Name (1)
    • [x] Suspend (2)
    • [x] Resume (3)
    • [x] Status (4)
    • [x] ThreadGroup (5)
    • [x] Frames (6)
    • [x] FrameCount (7)
    • [ ] OwnedMonitors (8)
    • [ ] CurrentContendedMonitor (9)
    • [x] Stop (10)
    • [x] Interrupt (11)
    • [x] SuspendCount (12)
    • [ ] OwnedMonitorsStackDepthInfo (13)
    • [x] ForceEarlyReturn (14)
  • ThreadGroupReference Command Set (12)
    • [x] Name (1)
    • [x] Parent (2)
    • [x] Children (3)
  • ArrayReference Command Set (13)
    • [x] Length (1)
    • [x] GetValues (2)
    • [x] SetValues (3)
  • ClassLoaderReference Command Set (14)
    • [x] VisibleClasses (1)
  • EventRequest Command Set (15)
    • [x] Set (1)
    • [x] Clear (2)
    • [x] ClearAllBreakpoints (3)
  • StackFrame Command Set (16)
    • [x] GetValues (1)
    • [x] SetValues (2)
    • [x] ThisObject (3)
    • [x] PopFrames (4)
  • ClassObjectReference Command Set (17)
    • [x] ReflectedType (1)
  • Event Command Set (64)
    • [x] Composite (100)