jdb

Java jdb remote debugging command line tool

anyone have any experience using this? if so, is it worth while? ...

How does Eclipse debug code in an application server?

What communication is going on between Eclipse and my application server (JBoss) when I run the server from within Eclipse in debugging mode? How does this work? ...

Recomend a (standalone) java debugger

As the title suggests what is a good debugger for Java? I've come from a C/C++/Ada background so I've become very accustomed to gdb :). On the java side I've only used jdb and jswat but I would like to ask what java debugger do you recomend and why. Some background: I'll be using the debugger to debug a Swing Applications running on ( a...

How to script the java debugger command-line tool (jdb)?

How can I drive the debugging session with some scripting language like ruby? Is there any easier options than using Expect or some similar module with a scripting language? ...

Print multiple variables with one command in jdb

How can I print multiple local primitives with one command in jdb (verison 1.4)? I've tried: print v1, v2, v3 but that only prints out the value of v1. Any suggestions? Edit: Effectively I need a watch in jdb. ...

How do I pass console input to a running Java program instead of to jdb?

Debugging my code with Java's jdb. Am stuck at a point where my program expects command-line input, but jdb intercepts it as a jdb command. How do I tell jdb to pass through text to the running program? Version: C:\Documents and Settings\*snip*>java -showversion java version "1.6.0_17" Java(TM) SE Runtime Environment (build 1.6.0_17-b...

How do I print an array in Java's jdb debugger?

How do I print out the values of the byte array all at once? I seem to recall I could specify a memory range in gdb. Is similar functionality is available in jdb? I have a Java byte array: byte [] decompressed = new byte[OUTPUT_FILE_IO_BUFFER_SIZE]; which I populate from a String: System.arraycopy(decompressedString.getBytes(), 0, d...

How do I skip a breakpoint a set number of times in Java's jdb?

How do I skip a breakpoint a set number of times in jdb? jdb's help provides this hint: !! -- repeat last command <n> <command> -- repeat command n times # <command> -- discard (no-op) When I attempt to skip breakpoints n number of times however, like this: 80 cont or like this: 80...

Break when a variable is assigned some value

I want jdb (which I'm using via the Eclipse debugger) to break when a variable is assigned some value. I'm not interested in setting a breakpoint at some specific line but rather more generally. For example, break every time x == null. Is such a thing achievable? ...

Cross-continent remote Java Debugging

When attaching the debugger in an IDE (IntelliJ or Eclipse) to a JVM running in another continent (london to new york) the lag is unbearable. I've waited in excess of 10 minutes for IntelliJ to populate my stackframes and fill out objects before giving up when hitting a breakpoint. (note: ive never seen a fully populate debug state when ...

What is the default properties that eclipse uses to launch a java process in its debugging mode ?

I would like to connect to java process started by eclipse using a command line debugger but not sure what default properties of the eclipse launched java process are ? I wouldn't mind using attaching using sockets but not sure how much slower that would be ? ...

jdb conditional breakpoint

I remote debug my application using JDB, just JDB, no IDEs, is there a way in jdb to set a conditional breakpoint? eg: stop at MyClass:80 when mystr.equals("abc") ...

Invoking debug session in Eclipse outside Eclipse

How to run debugging session in Eclipse but to invoke it outside Eclipse (instead of doing Run->Debug I want to invoke some process (maybe jdb?) that will start debug in Eclipse). Is that possible? ...

android with jdb confusion using waitForDebugger

I'd like to debug my Android application on my device (nexus one - not the emulator) using the command line. I'm confused at how to set a breakpoint using jdb in combination with android.os.Debug.waitForDebugger. Say I put the following code in my main activity onCreate... public void onCreate(Bundle savedInstanceState) { super.on...

printing local variable at runtime on demand?

Is it possible for me to print all the local, instance variable at runtime on demand. By on Demand I mean like we have jdb -attach <port> which we do at runtime and then we can start debugging... likewise I want to just print all those variables instead of debugging. is it possible? For example as can be seen, MyDebuggerExample make a c...

JDB -- How to get a list of methods before running the program?

I'm learning JDB and running into a bit of a paradox. After starting JDB (with "jdb ClassName") most tutorials will tell me to type > methods ClassName to see a list of available methods so that I can set my breakpoints. If I do that, JDB replies Command 'methods' is not valid until the VM is started with the 'run' command Of...

Android development : ddms from command line not seeing devices.

=============================== *SOLVED * : see answer below I dont want to use Eclipse. From the command line: An emulator is running. adb server is running. "adb devices" lists correctly and I can see my instance on an avd in the output. However when I manually start DDMS from the command line it just keeps trying to connect. I ca...

jdb with android apps - unable to open source file.

I am hoping to use jdb to debug android apps in the emulator via the ddms go between. I have successfully set a breakpoint in my class' onCreate and the debugger (jdb) duly breaks. However if I try to "list" the code it says it can not find the source file. I start jdb like this from emacs :- jdb -sourcepath="~/programming/android/proj...

Print variables in java jdb debugger

Is it possible to view variables, passed as arguments in function, if class was compiled without debug flag? I successfully put breakpoint on call, but after that i don't know how to view arguments value. I don't have good source code, soft is obsuficated. Function like this: void a(int var1, boolean var2) - so, i want print var1 & prin...

Use a jar with source as source for jdb?

I have a executable jar with source compiled in and I want to debug it using jdb (no other debugger available in this environment unfortunately). I am able to debug it with jdb -classpath "${JAR_FILE}:${CLASS_PATH}" ${MAIN_CLASS} ${ARGS} How can I get jdb to use the source that is built into the jar file? Notes: Java 6, AIX, ksh ...