Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315787

Summary: Super long script names cause a lot of scrolling in the debug view
Product: [WebTools] JSDT Reporter: Michael Rennie <Michael_Rennie>
Component: DebugAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact: Simon Kaegi <simon_kaegi>
Severity: normal    
Priority: P3 CC: thatnitind
Version: 3.2Flags: simon_kaegi: review+
Target Milestone: 3.3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
proposed fix none

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.