Questions tagged [jpda]

Java Platform Debugger Architecture

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

63 questions
4
votes
1 answer

Tomcat 8 jpda port

The page of migration to "tomcat 8" says (http://tomcat.apache.org/migration-8.html): "When starting Tomcat with the jpda option to enable remote debugging, Tomcat 8 listens on localhost:8000 by default. Earlier versions listened on…
Eyal leshem
  • 995
  • 2
  • 10
  • 21
4
votes
1 answer

Using JDWP and JVMTI to obtain information of the running Java application

We are developing an application for obtaining the information of a running java application using JDWP and JVMTI. Sun Java comes with a reference implementation of JDWP so using agentlib -jdwp: will use the reference implementation. Our aim is to…
MohamedSanaulla
  • 6,112
  • 5
  • 28
  • 45
3
votes
1 answer

What's the different between JPDA and JMX?

I am trying to write a application monitoring tools, and I came across two standards, JPDA and JMX. They seems like some how similar to me. What's the different?
janetsmith
  • 8,562
  • 11
  • 58
  • 76
3
votes
0 answers

What does dt in dt_socket stand for?

In the context of the Java Platform Debugger Architecture, what does the dt_ prefix in, for example, dt_socket or dt_shmem stand for? Debugger transport? Data transfer?
Matthias Braun
  • 32,039
  • 22
  • 142
  • 171
2
votes
0 answers

configure JPDA in tomcat 8

I have tomcat 8 on my centos server and the configuration of JPDA is (in catalina.sh): export JPDA_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n" but after some minute of working with it (and connect to this port) the…
Elham_Jahani
  • 369
  • 2
  • 8
2
votes
0 answers

JDI watchpoints on Local Variables

I need to set watchpoints on Local Variables, but the problem is JDI allows ModificationWatchpoint and AccessWatchpoint to be set only on class/instance variables. Only approach I could think of is monitor stackframes after execution of each line,…
rainyday
  • 353
  • 3
  • 17
2
votes
1 answer

How to debug a class loaded by a custom classloader in JDI

Using arguments -Xdebug, -agentlib:jdwp=transport=dt_socket, server=y, suspend=n, address=4404 Start target program. Debug the target program using the com.sun.jdi related class. The classesByName method of the VirtualMachine class. The class that…
Channe
  • 109
  • 1
  • 1
  • 8
2
votes
0 answers

Detect jpda tomcat parameter from java

There is some way to detect if a tomcat instance was launched using jpda parameter frpm java source? I need apply diffeent behavior on my java application depending on this parameter.
Ignasi
  • 5,887
  • 7
  • 45
  • 81
2
votes
1 answer

Eclipse Debugging Plugin: Access underlying java object from IJavaObject of JDT

For my masterthesis I'm writing an Eclipse plugin for visualizing variables while debugging. I put a lot of effort in creating custom 'crawlers' for a comfortable access to the IJavaObject, IJavaType and IJavaValue and more. The problem is, that I…
MrCube
  • 245
  • 2
  • 9
2
votes
2 answers

Attach debugger in netbeans with embedded jetty

I'm looking for days now how to attach my debugger in netbeans. So we have a Start.java class where the jetty is embedded. Similar to this http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty So I start my web application by running this…
Alex P.
  • 3,073
  • 3
  • 22
  • 33
2
votes
1 answer

Eclipse keeps information about breakpoints in exported jar?

I was following this article about Remote debugging with Eclipse and I was surprised by: Debug an application remotely (sub title) ... 2. Set a breakpoint ... 4. Export the Java project 5. Run the Java application manually 6. Debug the application…
Nikolay Kuznetsov
  • 9,467
  • 12
  • 55
  • 101
2
votes
1 answer

Using jpda to connect to weblogic

I am building a utility/tool to profile/trace the method calls in a Java EE application deployed in Weblogic 10 (java 6). The intention is to quickly understand the flow of events in our huge enterprise application. (Going through the code is…
MVK
  • 125
  • 2
  • 9
2
votes
1 answer

What is inherited by a child process?

Does a forked process inherit any (server) ports bind from the parent process? I have a java process which forks a child process and from netstat -anpt |grep I see that both parent and child are bound to the same port. Is this possible? Is there a…
Jim
  • 18,826
  • 34
  • 135
  • 254
1
vote
1 answer

Cannot start tomcat as an external tool within eclipse

I have configured eclipse to be able to start(for debug: using jpda) and stop tomcat as a program. The first time when i start/shutdown tomcat from eclipse is successful. But the second time when i try to start tomcat i get the following…
ananth85
  • 137
  • 2
  • 12
1
vote
0 answers

JPDA doesn't seem to work in IDEA deployed with JBoss

I have a Java project which is deployed on remote JBoss server that I'm trying to debug using JPDA in IDEA. The following was added to JBoss config to turn this feature on: "JAVA_OPTS=$JAVA_OPTS…
Joe D
  • 44
  • 1
  • 10