|
|
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 DebugFooNow 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.
| |
| [Append to This Answer] | |
| 2001-Jun-20 2:04pm |
| ||||||||
|
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 |
|||||||||||||||||
|
|||||||||||||||||