184 questions
1
vote
0
answers
65
views
Unable to connect Java Remote Debugger (JDB) over SSH to GitHub Actions instance
I'm trying to connect to a Java applications running in GitHub Actions with the Java Remote Debugger (JDB) over SSH.
Take a simple GitHub Actions workflow that:
opens an SSH connection to allow ...
0
votes
0
answers
49
views
Can I use jdb to debug a class that expects user input? [duplicate]
I am trying to use JDB to debug my Java programs.
Is it possible to use JDB when debugging a java program that uses a Scanner class with System.in?
When I tried to enter user input during the jdb ...
0
votes
0
answers
21
views
jdb attach hangs when attaching a debuggable android app
I'm using macbookpro m3, This is my code:
Frist run the app in debugger mode
adb shell su -c am start -D -n com.xxx.xxx/.MainActivity
Then attach jdb
pid=$(adb shell su -c pidof com.xxx.xxx)
...
0
votes
0
answers
45
views
Is it possible to print the reference of a String object when running `jdb` in JDK 8? [duplicate]
Given the following code, I was trying to use print to display the reference of a String object in "jdb", but the output was as same as the "toString()". I know that == is used for ...
0
votes
0
answers
19
views
How do we set breakpoints in before execution vscode?
I can set breakpoints in .jdbrc
stop in com.android.Activity:1
stop at ky.c:1
VSCode doesn't respect .jdbrc configuration
{
{
"name": "Debug Mobile Application"...
0
votes
0
answers
32
views
Load JDB script for debug
O debug a JAVA process using JDB.
I want to write a script that load into jdb script : breakpoint, print locals and set locals.
stop in ExampleClass.exampleMethod
locals
set aaa = 123
cont
Hiw can ...
0
votes
0
answers
29
views
Execute jdb commands from eclipse debugger
With eclipse CDT, you have the "debugger console" to execute gdb commands.
I want in a debugging session in eclipse to execute jdb commands.
Is there a way to achieve this goal ?
I parse ...
0
votes
1
answer
114
views
Can you create new objects with jdb print?
jdb's print allows evaluation of expression, but I'm not sure if it's possible to create new objects that way. Any new seems to return just null, e.g.:
Thread-0[1] print new java.lang.String("12&...
1
vote
0
answers
71
views
How can one dump all static fields of a class that has no instances?
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 ...
0
votes
0
answers
47
views
ADB - "adb.exe: unknown command jdb"
I have installed JDK22, JAVA, Bluestacks and Android Studio SDK yet I think I dont have JDB installed:
adb.exe: unknown command jdb
enter image description here
ADB is working properly though:
enter ...
1
vote
0
answers
109
views
How to attach jdb to a jhsdb debugd process?
When attempting to debug a Java process not started with a jdwp agent (-agentlib:jdwp=transport=dt_socket,...) I started a debug server using
jhsdb debugd --pid <jvm_pid>
How can a jdb process ...
1
vote
1
answer
977
views
Gradle: How to debug a source code of a dependency
I'm using jdb debugger and I'd like to step into the dependency code. I'm using gradle as well.
Here is my build.gradle
plugins {
id 'java'
id "io.spring.dependency-management" ...
0
votes
1
answer
105
views
spring native query call a function that returns a json
I am new to java and I am trying to call a function that returns a json object, However the java method returns a String.
Is there a way in postrgres to convert Json to VARCHAR, or in java to vonvert ...
1
vote
2
answers
564
views
java jdb does not display code lines in step output
Trying to learn the jdb from the command line. From tutorials I expect to see the code line output when I step lines, but I am not.
Here is sample code I compiled:
public class Main {
public ...
0
votes
0
answers
344
views
JDB Java debugger - how can I set verbose option to see why my app is crashing?
I'm trying to debug some Android app with JDB Java debugger.
Here are my steps:
adb shell am start -D com.appname.global.android/.MainActivity
adb jdwp
adb forward tcp:8700 jdwp:<NEW_PORT>
Add ...