Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315787 - Super long script names cause a lot of scrolling in the debug view
Summary: Super long script names cause a lot of scrolling in the debug view
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.3   Edit
Assignee: Michael Rennie CLA
QA Contact: Simon Kaegi CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-04 11:26 EDT by Michael Rennie CLA
Modified: 2010-06-29 23:08 EDT (History)
1 user (show)

See Also:
simon_kaegi: review+


Attachments
proposed fix (5.31 KB, patch)
2010-06-04 11:26 EDT, Michael Rennie CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2010-06-04 11:26:59 EDT
Created attachment 171111 [details]
proposed fix

code from HEAD

if you are debugging a script with a very long name - which can happen quite easily if the script is generated - you have to do a lot of scrolling in the debug view to see the name of loaded scripts / stack frame info. We should shorten really long names.

The patch proposes to fix this problem by shortening names that surpass a given threshold by removing middle characters in the name and replacing them with '...'.
Comment 1 Michael Rennie CLA 2010-06-29 15:18:49 EDT
applied to HEAD, please verify Simon
Comment 2 Simon Kaegi CLA 2010-06-29 23:08:18 EDT
Looks good.