(Answer) (Category) FAQ-O-Matic : (Category) General : (Category) Debugger :
I need a better debugger than jdb. How can I use JBuilder's debugger to step through my application without having to rearrange my build process to make it all fit a JBuilder Project? (Most of us use javac/VAJ/whatever and can not or will not alter the structure.)
Create a new, empty project. Name it anything you like.

Define a library that points to the classes and sources for your app.

  Tools | Configure libraries
    Click 'New...' in the lower left
    Give the library a name, call ie DebugFoo.
    Set DebugFoo's class path to contain all of the jars your app uses.
    Set DebugFoo's source path to the top of the tree(s) where  your app's
      sources live.
    Ok, Ok

It is critical to set the library's source path properly, otherwise the debugger will not display your actual source, but a decompiled stub of the classfile.

Now tell the empty project to use this library.

  Project Properties | Paths | Required Libraries
  Add
  Select DebugFoo
 
Now tell the project where the app's main class is.

  Project Properties | Run, select the app's main class from the browser.

If there's a file you need to set a breakpoint in, use Run | Add Breakpoint to add breakpoints.

You shouldn't need to compile anything unless your existing classes lack debug information.
2001-Jun-20 2:04pm gyles19@visi.com

[Append to This Answer]
2001-Jun-20 2:04pm
Previous: (Answer) I installed JBuilder4 on Linux, and because the bundled IBM JVM debugger doesn't work well, I installed Sun's JVM and edited jdk.config to run JBuilder on Sun's JVM. However, when I look at the "Run" menu, NONE of my debugger menu items are enabled! What's wrong?
Next: (Answer) I'm trying to debug applications (both remote and local) and whenever JB hits a breakpoint, all my variables are "out of scope." How do I fix this?
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=219
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

Java Community
Java Tools
Code Central
JB OpenTools
Community
Recent
Threads
Borland Chat
Chat FAQ
Feature Matrices
3.0 |  3.5 |  4.0
5.0 |  6.0 |  7.0
Shop for
JBuilder
JBuilder
Downloads
and reg keys
Report Piracy
Online Manuals
4.0 |  5.0 |  6.0
7.0
Borland
DevSupport's
Bug/RFE Form

Quality Central Client
JB Patches &
Updates
JBuilder FAQs TIs
JBuilder
Newsgroups
Tamaracka's
News Archive
Mr. Haki's
JBuilder Machine
JGuru's
JBuilder FAQ
Sun's Bug
Parade
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]