Questions tagged [jdb]

The Java Debugger, jdb, is a simple command-line debugger for Java classes.

The Java Debugger, jdb, is a simple command-line debugger for Java classes. It is a demonstration of the Java Platform Debugger Architecture that provides inspection and debugging of a local or remote Java Virtual Machine. Documentation available at http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html .

174 questions
0
votes
0 answers

Debugging with jdb: transport err 202 get addrinfo

I'm to use the Java debugger in the terminal for Mac, and it seems to let me use it randomly. Sometimes it works, but other times it gives me this message: run run Lab5 commands1.txt VM start exception: VM initialization failed for:…
0
votes
0 answers

How to check the memory condition during the running of java program

I'm learning java, When looking for data, I often see pictures that describe the memory distribution during the running of the program.Just like: Description polymorphism Description inheritance Combined with the article, I can understand the…
0
votes
0 answers

clojure debugging startup (jdb?)

I want to understand the startup of Clojure and the execution of a single form at the REPL of Cloujure. Often, when possible, I use a debugger to step through the code to watch what is happening. I think that I want to use jdb. It keeps failing…
0
votes
1 answer

Mac OS HSDB HotSpot Debugger can not attach to the process

I want to use HSDB to debug my java code. I follow the steps blow: Debug my code in IntelliJ and stop at a breakpoint Start HSDB: java -cp ,:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/lib/sa-jdi.jar sun.jvm.hotspot.HSDB use…
lin
  • 1,425
  • 1
  • 19
  • 27
0
votes
0 answers

Error when try to install GJDB in ucb cs61b course lab

I am learning ucb course CS61b Spring 2014. I'm trying to finish the lab7. In this lab, it introduces us to GJDB, a Java debugger. After I downloaded the lasted version of GJDB (from here), planned to build and install it by following the readme…
Yongyan
  • 1
  • 2
0
votes
1 answer

Debugging Istio-enabled Java application

I am trying to remote-debug a java application running in Openshift with Istio, therefore as a pod with one docker container with the app itself and another one container with the Envoy proxy. I have set up the debug arguments on the java…
Radim Vansa
  • 5,686
  • 2
  • 25
  • 40
0
votes
1 answer

vagrant debug can't access debug port 8000 from host machine

Connections to port 8000 from host machine do not work (connection refused), but local debugging works on the guest machine. I'm running tomcat 8.5 inside a vagrant box with centos image and self signed cert. The host machine is running windows 7.…
sjensen
  • 41
  • 6
0
votes
1 answer

Java debugging with execution time in eclipse

I have a large Java project that I am trying to optimize. I didn't write the code so I was using JDB and eclipse(remote debugging) to step through the code and understand it. I was wondering if there is a way to get the execution time as well when I…
Aditya
  • 1,240
  • 2
  • 14
  • 38
0
votes
1 answer

JDB execute a method on "this"

Is there a way for JDB to execute an instance method of the class where I stopped with a breakpoint? I would like to do something like: main[1] this.myMethod() I know that there is the "eval" command and that you can do something like main[1]…
Phoebus
  • 311
  • 2
  • 17
0
votes
2 answers

jdb giving java.net.SocketException: Connection reset

I've been trying to run jdb to try and get it attached to a process on my android device. The commands I've tried are as follows: adb forward tcp:12345 jdwp:4127 jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=12345 We can assume…
ykw
  • 91
  • 3
  • 9
0
votes
2 answers

shmemBase_attach failed when connecting to Android device

I'm trying to hook up jdb on my computer to a process (any process really) on my Android device, but it doesn't work at all. So the commands I used are straight off the Google ADB Documentation. First I do adb forward tcp:3456 jdwp:pid Then after…
starkipraggy
  • 41
  • 1
  • 9
0
votes
0 answers

java remote debug with jetty and IntelliJ

I have a SpringMvc based application project hosted in Jetty and managed by Maven3. I want debug program in remote server JVM. So, on the server side I set java options to the Jetty server. -Xdebug…
Luke Jin
  • 1
  • 2
0
votes
1 answer

use many input tag to search from database , JSP

I have many case to search database, so i don't want repeat if/else statement, is there an other good solution ? nom and dd and ddd are input name, Sorry for my bad english!
0
votes
1 answer

Mac Terminal: "Initializing jdb ..." on start up

As soon as I start the terminal on my Mac, I get the message "Initializing jdb ..." and it remains in this state until I terminate the process manually with a Ctrl+C. The other option is to start a JVM at on particular port and attach the jdb to…
Faux Pas
  • 536
  • 1
  • 8
  • 20
0
votes
0 answers

DDMS: unable to connect jdb to DDMS port

I am learning android, and developing application without using IDE through ant. I build applications with ant debug, and deploy them on the emulator with adb. I have marked app to wait for debugger to attach from developer settings. However when I…
user1064504
  • 573
  • 6
  • 16