Jdwp missing from wowza provided java

I’m attempting to attach a debugger with the eclipse wowza ide, but I cannot start wowza with xdebug.

C:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.8.0\bin>startup.bat

Error occurred during initialization of VM

Could not find agent library jdwp on the library path, with error: Can’t find dependent libraries

Is there a workaround for this? I’m on windows 10 using this guide, https://streamtoolbox.com/debugging-wowza-module.

I’ve also tried adding the xdebug flag via the tune.xml file as VMOption

-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044

My Wowza streaming engine version is 4.8

If this is about a development environment, what I usually do, is:

(1) install Wowza on the dev machine

(2) install Eclipse and the Wowza IDE for Eclipse

(3) set up a debug configuration in Eclipse (menu “run” > “debug configurations”)

Now you can simply choose Run > Debug (or F11) and you’ll run Wowza within Eclipse with full debugging

You can also fill out the form at the bottom of that StreamToolbox page; maybe the author of that article has some ideas.

Hello
I bumbed into the same issue and my eclipse debugger cannot connect to the wowza server (Failed to connect to remote VM. Connection refused. Connection refused: connect). Im assuming thats because Im missing something in the step 3 ( set up a debug configuration in Eclipse ). Which port should i use? Default is 8000, I`ve tried 8084, 8085, 1044, 8088, nothig works. Or is there something else you need to configure for debug to work?

@Bobbie_Mcneil, I don’t use Remote Debug, I’ve set up a Debug Configuration that runs Wowza Streaming Engine as a Java Application directly on the developer machine.

Set the Main Class to com.wowza.wms.bootstrap.Bootstrap, and in the Arguments tab, set the Program Arguments to start and use the following VM arguments (instead of 2048M, you can choose to reserve more/less memory for the Java Heap), also the “native.base” is “win” because I’m on a Windows machine, as you probably understood.

-Xmx2048M
-Dcom.wowza.wms.runmode="standalone"
-Dcom.sun.management.jmxremote=true
-Dcom.wowza.wms.native.base="win" 

Under JRE, I use “Alternate JRE” and point to the JRE folder in the Wowza Installation folder.

Tab “Dependencies” has 2 Classpath entries: The JRE System Library and wms-bootstrap.jar from Wowza’s /lib folder.

Finally, on the Source tab, I add my current project so that I can debug its source code.