Questions tagged [jpda]

Java Platform Debugger Architecture

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

63 questions
29
votes
8 answers

Debugging Tomcat in Docker container

I have a CoreOS running in Vagrant. Vagrant private network IP is 192.168.111.1. Inside a CoreOS is a docker container with Tomcat 8.0.32. Pretty much everything works ok (app deployment etc.) just debugging does not. Tomcat is mapped to 8080 port…
CAPS LOCK
  • 1,960
  • 3
  • 26
  • 41
26
votes
4 answers

Why is Java's debugging Hot Swap limited to intra-method changes?

I have gone through hot deployment tutorial and it works. But i have questions about the limitations(point 3) i.e Hot deploy has supported the code changes in the method implementation only. If you add a new class or a new method, restart is still…
emilly
  • 10,060
  • 33
  • 97
  • 172
13
votes
3 answers

How to set agentlib property for mvn tomcat plugin (jpda)

Related to eclipse debug remote web application => How do I debug a remote application in my eclipse How can I set / archive this in the mvn tomcat plugin? http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/ The only thing that…
childno͡.de
  • 4,679
  • 4
  • 31
  • 57
10
votes
5 answers

How to run Apache Tomcat 8 in debug mode?

I am trying to run Apache Tomcat 8.0.21 in debug mode. When I give the command sh catalina.sh jpda start it gives this error. error message ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.…
9
votes
5 answers

Tomcat startup ignoring jpda option for debug

I am attempting to run Tomcat 7 in debug mode. If I type ./catalina.sh jpda start tomcat runs as though the jpda option is not there and outputs: Michaels-MacBook-Pro:bin clairewilgar$ ./catalina.sh jpda start Using CATALINA_BASE: …
clairebones
  • 225
  • 1
  • 3
  • 6
9
votes
3 answers

How to debug tests with Play! 2.0

I am setting up a project using Play 2 and I am already able to debug the webapp using eclipse remote debugging. Though, I'd also like to use breakpoints along my tests. Does anyone know how setup unit tests' remote debugging?
Pedro Rolo
  • 28,273
  • 12
  • 60
  • 94
7
votes
8 answers

Which Java debugger do *you* use

I spend a lot of time debugging applications in Eclipse using JPDA. There are a few issues with the Eclipse debugger which really annoy me. Can anybody recommend plug-ins, better debuggers or perhaps tricks that I don't know of yet? In the…
mikevdg
  • 370
  • 1
  • 7
6
votes
2 answers

java debugging - watch an out of scope variable

When debugging a C/C++ application I can create a watch of an address cast to a pointer type and then view that contents of a structure even when it goes out of scope. Is it possible to achieve something like that in Java? Let's say I'm in a…
MK.
  • 33,605
  • 18
  • 74
  • 111
5
votes
1 answer

debug gradle bootRun having server=n

If a application run by gradle should be debugged, you add the parameter --debug-jvm The debugger will start a jpda-server (because server=yes) and suspend until eclipse(or whatever) attach to the socket. How to do the inverse way? How to tell…
Grim
  • 1,938
  • 10
  • 56
  • 123
5
votes
2 answers

Likely and unlikely causes of Heisenbugs in Java?

I've got a classic example of a Heisenbug that is triggered by a condition that I hadn't seen before. My legacy application (around 100K sloc of old code) fails to work properly in a specific instance and merely enabling JPDA to remote debug changes…
m.thome
  • 222
  • 1
  • 6
4
votes
3 answers

Java API to turn on debugging in a running JVM

Is there a programmatic way to turn on debugging in a running JVM instance? I am looking for an API that would make a running JVM, a debug server. The API would do the equivalent of -Xdebug…
Ranjit Iyer
  • 857
  • 1
  • 11
  • 20
4
votes
3 answers

Java remote debugging (JPDA) not working for me in Tomcat 9

I'm trying to remotely debug a Tomcat webapp on a recently upgraded Tomcat 9.0.13 and Open JDK 11.0.1. Server is Redhat Enterprise Linux 7.6 and I'm using Eclipse on a Windows 7 developer box to connect. Tomcat starts, and the app is accessible on…
TikiTavi
  • 242
  • 1
  • 3
  • 9
4
votes
0 answers

JPDA MethodEntryEvent causing app to run very slow

I am trying to capture all method calls made in any android app. For that I am using JDI to register MethodEntryRequest for each running thread of the app. I am successful to do this, but I am facing the problem that the app becomes very very slow.…
rainyday
  • 353
  • 3
  • 17
4
votes
1 answer

ObjectReference underlying object in JDI and JPDA

Very specifically, in JDI and JPDA context, I have the following questions: Why ObjectReference does not expose its underlying object? Is it based on some specification? Are all implementations such as Eclipse Debug Project the same that do not…
nobeh
  • 9,784
  • 10
  • 49
  • 66
4
votes
2 answers

Java Access to Local Variable Names

I'm currently writing a program in which I would like to access the variable names of local variables during execution of a program and pass them off externally. I'm aware that Java will dump local variable names during compilation unless compiled…
cryptic_star
  • 1,863
  • 3
  • 26
  • 47
1
2 3 4 5