jdb Questions
3
In theory, the JDB (java debugger) allows for a single thread to be killed. In practice, is it possible? Here I attach jdb to my JVM, which has an agentlib at port 8000:
$ jdb -attach 8000
>
...
Xylidine asked 18/11, 2011 at 21:40
6
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.
...
0
I'm in a static method of a class that has no instances. So jdb doesn't like this, of course:
dump this
No 'this'. In native or static method
It is actually in the latter: a static method of an ob...
4
I have a java project in which the file system is as follows:
I have 3 directories: bin, src, and lib.
src contains my *.java files
bin contains my *.class files (compiled using the files in sr...
4
Solved
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...
1
Solved
I am trying to configure Visual Studio Code so that I can use it instead of IJ for debugging a complex Java app. Because of reasons too complicated to get into, I have been running on a terminal us...
Expostulate asked 5/6, 2017 at 15:42
2
I like to see the clipboard symbol: 📋 (U+1F4CB) in the debugger.
I understand the two codepoints.
Whearat:
\ud83d is ߓ
\u8dccb is
I like to detail-format to see it in the debug-tooltip in...
2
I am using JDB to remote debug a program. Can I write scripts within JDB so that i can write loops and if-else conditionals to control how JDB executes and record the jdb output to a file.
M...
4
Solved
I’ve been trying to connect jdb to the android emulator for a little while, and have been met repeatedly with:
jdb -sourcepath ./src -attach localhost:8700
java.io.IOException: shmemBase_attach ...
Fellowship asked 18/11, 2010 at 22:17
1
Solved
So I have some malfuctioning code to debug where SOMEthing throws an NPE and I'd like to step through some generated methods in order to try and find out why.
Except stepping blindly is not really...
Specialize asked 20/3, 2018 at 13:38
2
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. F...
2
Solved
I need to attach a jdb debug session to a java application that is being executed in a remote host, but I am unable to do it. I am working on linux, with openjdk 1.8.0_65, 64-Bit Server VM.
What I...
1
I have successfully debugged an Android app with jdb today. But I found jdb is not as handy as gdb for me: the convenience and functionality which jdb provides are grossly inferior to those provide...
Zirkle asked 11/4, 2012 at 9:46
1
Solved
I want to know how it is implemented because I want to play around with it..
Asking here because searching "jdb" on Google only shows the documentation of it. Otherwise there are tutorials and stu...
3
Solved
When I run jdb in bash the arrow keys produce weird garbage:
up: ^[[A
down: ^[[B
left: ^[[D
right: ^[[C
So I can't use the command history, or correct a spelling mistake, because I can't navigat...
Apprentice asked 14/12, 2012 at 11:27
1
My Java version is 1.8.0_6. The JDB on my laptop can be started with a .class file, say MyClass.class. But after I type
run
conmmand, JDB first gives me a prompt "run MyClass", then it is stu...
5
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 pop...
3
Solved
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?
Pester asked 5/12, 2008 at 14:17
1
when I execute jdb on linux, there is an error such as
ERROR: transport error 202: bind failed
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ER...
2
So, I am starting a Java program as below
java -agentlib:jdwp=transport=dt_socket,address=8000, server=y,suspend=n MyClass
I then manually attach a debugger as below
jdb -attach 8000
I would...
3
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 th...
3
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")
2
Solved
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?
1
Solved
I'm using jdb to remotely debug a Java application of which I don't have the source code. Furthermore, the application jars are obfuscated.
I can set method breakpoints but, is it possible to set...
4
I'm having troubles with using a stand-alone java debugger with android apps on emulator. Apparently, any remote-capable java debugger such as jdb (or jswat) could be leveraged, by following the st...
Knowland asked 12/10, 2010 at 9:46
1 Next >
© 2022 - 2025 — McMap. All rights reserved.