Closed
Bug 995872
Opened 11 years ago
Closed 6 years ago
Accept both variants when searching quoted strings in the debugger
Categories
(DevTools :: Debugger, enhancement, P3)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: karlcow, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [polish-backlog])
When searching through Javascript code in the debugger section.
These two strings should trigger the same results:
!addeventlistener('click'
!addeventlistener("click"
It might be tricky in some cases but it could be useful to have the possibility to explore without having to type twice for finding the right quote ' or " which has been used.
Reporter | ||
Updated•11 years ago
|
Severity: normal → enhancement
Summary: Search and quote strings → quote strings in search area of the debugger
Comment 1•11 years ago
|
||
Is this only for the debugger, or for the script editor and inspector as well?
IMO we can have a more comprehensive "smart search" option (make it an inspector pref) that also handles spaces and the like. Maybe even function definitions (`function abc` vs `abc=function`).
I would love to work on this (especially the smart search, if we're having it), though I'm a bit busy these days so I won't assign this to myself until I get time.
Comment 2•10 years ago
|
||
What might be even more useful, and would cover this use case as well, is to have some form of fuzzy search for the debugger. What do people think of that idea?
Updated•10 years ago
|
Summary: quote strings in search area of the debugger → Accept both variants when searching quoted strings in the debugger
Updated•10 years ago
|
Blocks: dbg-frontend
Updated•9 years ago
|
Whiteboard: [polish-backlog]
Updated•9 years ago
|
Priority: -- → P2
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Blocks: devtools-webcompat-team
Comment 3•6 years ago
|
||
I would prefer passing on this request for a couple of reasons
- updating our text search functionality across all tools is a significant feature
- it is good for search to be consistent with what editors do. i.e. it could be confusing to users to show matches that they would not expect
- the debugger supports regex searches, so it is possible to search
addEventListener\(("|'|
)click("|'|)\)
Updated•6 years ago
|
Flags: needinfo?(kdubost)
Flags: needinfo?(hkirschner)
Updated•6 years ago
|
Priority: P2 → P3
Comment 4•6 years ago
|
||
As regexp seems to solve this problem.
Maybe this is something to keep in mind for future editor-migration/Monaco work?
Flags: needinfo?(hkirschner)
Reporter | ||
Comment 5•6 years ago
|
||
Glad to discover that regex is available in the debugger. <3
Flags: needinfo?(kdubost)
Comment 6•6 years ago
|
||
wontfix for now, until we have a use case that isn't covered already.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•