Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327155 - Debug variables view: Detail pane - Show Class code source location
Summary: Debug variables view: Detail pane - Show Class code source location
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-06 14:46 EDT by Juan Heyns CLA
Modified: 2012-12-05 12:01 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juan Heyns CLA 2010-10-06 14:46:59 EDT
The normal detail formatter for a java.lang.Object only shows a this.toString() when there is no other formatters defined.

Classpath issues may be difficult to trace, and you are often not aware of it until things start to act up. It might be useful to include on the detail pane the source location of the class being viewed.

A simple but obviously not complete / foolproof method is to extend the formatter to show the source location like so:

this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath()
Comment 1 Juan Heyns CLA 2012-12-04 03:41:00 EST
If it is not clear from the description below. This is a request to improve the ability to debug classpath issues with the java debugging view.
Comment 2 Michael Rennie CLA 2012-12-05 12:01:42 EST
(In reply to comment #1)
> If it is not clear from the description below. This is a request to improve
> the ability to debug classpath issues with the java debugging view.

Debug already allows you to customize the details for a variable in any way you like. 

There are two ways you can do this:

1. From the variables view you can select a variable and use the "New Detail Formatter" for that specific kind of variable - then add the code snippet to print out the details you want to see

2. You can navigate to the Java > Debug > Detail Formatters pref page and add formatters for anything you want.

Marking wontfix, since the platform already allows you to customize detail formatters