Questions tagged [jdb]

The Java Debugger, jdb, is a simple command-line debugger for Java classes.

The Java Debugger, jdb, is a simple command-line debugger for Java classes. It is a demonstration of the Java Platform Debugger Architecture that provides inspection and debugging of a local or remote Java Virtual Machine. Documentation available at http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html .

174 questions
3
votes
2 answers

Classpath jdb with lwjgl

Hei there. I'm programming a game with lwjgl with vim and I'm trying to debug with jdb but I'm having some problems. First of all I show you the tree of my project. (The main class is Engine.java). . ├── build │   ├── classes │   │   └── com │   │  …
Marc Sola
  • 434
  • 4
  • 15
3
votes
1 answer

Fatal error : unable to launch target VM

I am new to the java and jdb ,trying to debug an example program : Foo.java class Foo { public static void main(String[] args){ System.out.println("Chexking dalvik virtual machine on system"); } } compiled it with -g flag . javac -g…
Imposter
  • 2,666
  • 1
  • 21
  • 31
3
votes
2 answers

JDB stops on every exception - how to prevent this

I am using a jdb dubugger, and the problem with it that is stops on every caught exception, though I did not execute any catch .... statements. During class loading there are hundreds of them: Exception occurred: java.io.FileNotFoundException …
Nulldevice
  • 3,926
  • 3
  • 31
  • 37
3
votes
1 answer

Browse .jdb output?

I am running crawler4j and the output is to the directory /frontier/. The files in this directory are 00000000.jdb je.info.0 je.info.lck je.lck the .jdb file is the only one with data the other three files have zero bytes. I am not sure what to do…
KDEx
  • 3,505
  • 4
  • 31
  • 39
2
votes
1 answer

JDB ignores breakpoint for method in Scala object

I am using JDB to debug Scala code, and it mostly works so far. However, one particular breakpoint is never hit, and it is set on a method of a Scala object (on method entry, not on a particular line number). As I step through the code I can see…
Robin Green
  • 32,079
  • 16
  • 104
  • 187
2
votes
1 answer

Debugging Android apps from JDB(within Emacs)

Ok, so I've been trying to debug Android apps from jdb. I run the emulator, install the app, run ddms and then I launch the app and then select it in DDMS. Now I run jdb with the following command jdb -attach localhost:8700 -sourcepath…
spiffworks
  • 21
  • 2
2
votes
1 answer

Java Breakpoint set on java.lang.ref.Finalizer not stopped

I want to get some insights of Java java.lang.ref.Finalizer initializing process so I set a breakpoint on its class static block: static { -> ThreadGroup tg = Thread.currentThread().getThreadGroup(); // breakpoint set on this line for…
guaner
  • 82
  • 10
2
votes
0 answers

Debug remote WildFly on Linux from Windows machine

UPDATE I have troubles with debugging remote WildFly application on Linux (RedHat 7.9) server. My IDE Intellij Idea 2020.1 works under Windows 10. On Linux server: openjdk version "1.8.0_282" OpenJDK Runtime Environment (build…
Dmitry Lazarev
  • 117
  • 1
  • 7
2
votes
2 answers

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?
JtR
  • 20,568
  • 17
  • 46
  • 60
2
votes
0 answers

SIGBART error when try to debug application

I have an android application written in Java. Application works normally but when I try to add it to debug mode using Attach Debugger to android process, it crashes with following error : 04-16 04:58:28.790 8084-8091/com.abc.dev A/libc: Fatal…
Tarun Deep Attri
  • 8,174
  • 8
  • 41
  • 56
2
votes
3 answers

Debugging Java projects where a .jar file contains the main method

For a class exercise on game trees, I have to write code that works with a .jar file. I haven't used Java in this way before. My Eclipse project tree looks like this: To run the code, I was told to do this on the command line: java -jar…
Pieter
  • 31,619
  • 76
  • 167
  • 242
2
votes
1 answer

Interactive Shell on website in django

I have a Django project up and running. I'd like to provide a user to interactively use JDB through the web app to debug an application. I want that the user can issue a command such as stop in [function name] next And that he would get the back…
Phoebus
  • 311
  • 2
  • 17
2
votes
2 answers

Java + jdb + maven in vim/emacs: How can I do it?

I'm new to the java world. For the past year I've been doing C#/C/C++ development in vim in linux, and have really grown to love it. Dotnet-cli was great to use, and, although there was no C# debugger in linux until one was built into vscode…
Zach Folwick
  • 893
  • 10
  • 18
2
votes
1 answer

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?
dede
  • 809
  • 3
  • 11
  • 26
2
votes
1 answer

Pause Android application when debugging with jdb so catchpoint can be set

Using the developer tools on an emulator I have an application wait for the debugger before starting, but immediately after jdb is attached the application will have an undesirable yet handled exception. I can't debug this exception since jdb wont…
Matthew Mitchell
  • 5,293
  • 14
  • 70
  • 122