• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDB list command  RSS feed

 
Loveen Jain
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am debugging a java source using jdb.(back to old days). Well while going through it in order to see the source I do .
But, unfortunately it only shows me a set of 10 lines.
Can anybody please guide me is it possible to increase the number of lines to be shown by list command? And if yes then please guide me how to do it.

Loveen
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Loveen,

What's the point of using jdb, when you could use any free Java IDE (e.g. Eclipse, Netbeans) to debug your application remotely?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. A single name isn't enough. You can change your display name
here.
Thanks for your immediate attention.

Now, as to your question: you can give a line number as an argument to "list", and it will print ten lines surrounding that numbered line. But otherwise, I don't believe there's a way to show more than ten lines at once.
 
Loveen Jain
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ernest, I have updated my name.


Well thanks Benoit, I thought that nobody would reply that message.

I am using manual jdb because I have only commandline Linux installed. And I am developing in VIM and there is no way out to debug the code rather then using jdb.


So in case there is any other tool that I can use, I will be delighted to know that.

Thankyou in advance!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!