Questions tagged [jpda]

Java Platform Debugger Architecture

The Java Platform Debugger Architecture is a collection of APIs to debug Java code.

63 questions
0
votes
0 answers

explain behaviour of following StepRequest

I am running some program through StepRequest with following code. EventRequestManager mgr = vm.eventRequestManager(); StepRequest st=mgr.createStepRequest(event.thread(),StepRequest.STEP_LINE,StepRequest.STEP_OVER); …
rainyday
  • 353
  • 3
  • 17
0
votes
1 answer

StepRequest with StepRequest.STEP_MIN parameter

In Java Debug Interface, What does StepRequest with StepRequest.STEP_MIN parameter mean ? https://docs.oracle.com/javase/7/docs/jdk/api/jpda/jdi/com/sun/jdi/request/StepRequest.html Java Docs says "Step to the next available location". What is next…
rainyday
  • 353
  • 3
  • 17
0
votes
0 answers

Tomcat : WAR file is not deployed when starting in remote debugging

I am starting tomcat in remote debugging via a .bat file that I have created which contains: set CATALINA_HOME=C:\apache-tomcat-9.0.6 set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_40 set PATH=%javahome%\bin;%PATH% set JPDA_ADDRESS=8000 set…
leo
  • 1
  • 1
0
votes
2 answers

Location of Java examples on Mac OSX

I'm looking for the example source code that is supposed to come with the JVM, specifically the file demo/jpda/examples.jar. Where is this located on OSX? (is it even on Mac OSX?) Thanks.
Paul Johnson
  • 1,329
  • 1
  • 12
  • 25
0
votes
0 answers

Why is Eclipse now knocking my jpda debugger port offline?

I've used the tomcat jpda debugger a thousand times and I know I have tomcat setup correctly. Now, when I go to attach my eclipse debugger to the remote tomcat jpda, it won't attach and also knocks the port offline. I can confirm the debugger port…
BrianKeys
  • 99
  • 1
  • 7
0
votes
1 answer

How to remote debug Tomcat (JPDA) when server has multiple virtual hosts running

Im trying to remote debug Tomcat (JPDA) on a server that is running two virtual hosts using the same Tomcat container. How do I ensure the debugger connects to virtual host A and not B. Thanks!
Ricardo
  • 1,391
  • 4
  • 15
  • 24
0
votes
1 answer

TimeoutException Occurred When Invoke JDI invokeMethod()

I am developing my customized debugger as an eclipse plugin. I am using the JPDA API to this end. I would like to retrieve the value of some object-reference variable. Therefore, I try to use ObjectReference.invokeMethod by invoking toString()…
0
votes
3 answers

Source not found while Remote Debugging spring based web app on tomcat

I have a Spring-based web application running on Tomcat which I wish to debug in Eclipse. I managed to run Tomcat in debug mode (JPDA). But I am encountering a Source not found error. I have seen similar questions asked before but I couldnt find an…
Pankaj Bhambhani
  • 659
  • 3
  • 12
  • 20
0
votes
1 answer

JPDA JDI ObjectReference of java.io.InputStreamReader

is there a way to retrieve String/Text from JPDA JDI ObjectReference of java.io.InputStreamReader ?
hiddenuser
  • 525
  • 2
  • 7
  • 19
0
votes
1 answer

Isolate JPDA on Tomcat to one client?

Is it possible to start Tomcat in "Debug Mode" (JPDA enabled for remote debugging session via Eclipse) and have it serve requests from hundreds of users in normal/production mode, but only "act" in debug mode (jumping to breakpoints, allowing me to…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
0
votes
1 answer

Issue with event request ids in jdwp

I've been trying to write a java bytecode debugger in C# and have run into an annoying problem . I set an event request (breakpoint, single step, etc...) and when java replies back that an event was raised, the event request id that it says…
ptsoccer
  • 158
  • 6
0
votes
1 answer

How to connect Adobe Air client side with Java VM Debug Interface?

I'd like to know if/how would it be possible to connect Adobe Air application to Java VM Debug Interface? I have some objects residing on server side and don't want to change the code there and server already allows to do remote debugging. Here's…
Roman Kagan
  • 10,440
  • 26
  • 86
  • 126
0
votes
0 answers

How to debug a java port/socket/connection from external application (remotely)?

I use jpda to debug a java application remotely, by tracing its function calls. What if I want to trace the java connection activity (database connection, or REST call to 3rd party service)?
janetsmith
  • 8,562
  • 11
  • 58
  • 76
0
votes
2 answers

How to debug tests ran from sbt

Tests run from sbt don't show an stacktrace when an exception happens, so I would like to connect to sbt from a debugger to debug the tests. What is an easy way of doing that?
Robin Green
  • 32,079
  • 16
  • 104
  • 187
0
votes
1 answer

Learning to debug in Java

I'm both learning to use the JPDA on Netbeans and solving the Prime Generator problem of Sphere's Online Judge. I've been reading this tutorial on netbeans.org about he JPDA, but haven't found it of much help. This code, which is based on a Sieve…
andandandand
  • 21,946
  • 60
  • 170
  • 271