Open Bug 992594 Opened 10 years ago Updated 4 months ago

allow search in console output, as opposed to filtering

Categories

(DevTools :: Console, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: noitidart, Unassigned)

References

(Blocks 2 open bugs)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release)
Build ID: 20140403132807

Steps to reproduce:

In browser console, while making an addon, i typed into filter output "blah". It finds the messages that contain "blah" but i want to do a ctrl+f for this so i can see the messages around it.


Actual results:

missing feature


Expected results:

add feature plz
Component: Untriaged → Developer Tools: Console
Severity: normal → enhancement
(In reply to noitidart from comment #0)
> User Agent: Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101
> Firefox/29.0 (Beta/Release)
> Build ID: 20140403132807
> 
> Steps to reproduce:
> 
> In browser console, while making an addon, i typed into filter output
> "blah". It finds the messages that contain "blah" but i want to do a ctrl+f
> for this so i can see the messages around it.

Ctrl-F jumps to the filter input. How do you want to see the messages around the search results?
(In reply to Mihai Sucan [:msucan] from comment #1)
> (In reply to noitidart from comment #0)
> > User Agent: Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101
> > Firefox/29.0 (Beta/Release)
> > Build ID: 20140403132807
> > 
> > Steps to reproduce:
> > 
> > In browser console, while making an addon, i typed into filter output
> > "blah". It finds the messages that contain "blah" but i want to do a ctrl+f
> > for this so i can see the messages around it.
> 
> Ctrl-F jumps to the filter input. How do you want to see the messages around
> the search results?

I guess, press Ctrl+F open a find bar for console messages, when the focus in the filter input.
Yes please any way that's easiest.
The regex search of scratchpad is nice.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Priority: -- → P3
Hardware: x86 → All
Summary: browser console find → allow search in console output, as opposed to filtering
(In reply to noitidart from comment #4)
> The regex search of scratchpad is nice.

That's using CodeMirror's search facility which we don't have here.

Searching rather than filtering might be a nice change though.
This came up in our add-on developer's meetup in Tokyo last week. Developers want to search instead of filtering since often the (un-matched) events that come before and after the matching lines are significant.
Product: Firefox → DevTools
Filtering and search are both important and search is missing right now. I would love if you copied what Chrome does, which is highlight every search result and mark the locations on the scrollbar. Sorry for the +1 comment, but it's pretty crazy that such a seemingly basic feature is still missing.
Yes, this really puts me off using Firefox to test JavaScript applications.  You basically have to copy the entire log into a text editor and search it there if you want to find something in an application with a lot of logging.

That's not exactly usable.

I'm really not a fan of Chrome, but when I need to do JavaScript at work, I always test there rather than Firefox because its dev tools are so much better at JavaScript.

Yes, sorry, that's just another useless +1 comment, but I'm trying to point out that I think this is a significant reason why people might prefer to develop their applications in Chrome (and then maybe not test them properly in Firefox as a result.)
So, in Chrome you can do both, filter and search. Filter is always visible, and is on the top toolbar.
For search, it appears on Ctrl+F at the bottom of the input (kind of what we have with reverse search).
Version: 29 Branch → unspecified

Hi Mentor, I want to work on this issue for GSoC.

Flags: needinfo?(noitidart)

Hello patrabiswajit,

This project wasn't accepted yet as a GSOC project, so we shouldn't start working on it.
You can try to find other bugs on the console to work on, in order to get familiar with the codebase and the development workflow.

Flags: needinfo?(noitidart)

(In reply to Nicolas Chevobbe [:nchevobbe] from comment #11)

Hello patrabiswajit,

This project wasn't accepted yet as a GSOC project, so we shouldn't start working on it.
You can try to find other bugs on the console to work on, in order to get familiar with the codebase and the development workflow.

Hi! This project is amongst the list of GSOC 2020 Mozilla proposols in GitHub. Does that not mean it is accepted? By the way, is there a page where I can see the list of Mozilla projects that have been accepted for GSOC 2020?

Flags: needinfo?(nchevobbe)

(In reply to kckusal99 from comment #12)

(In reply to Nicolas Chevobbe [:nchevobbe] from comment #11)

Hello patrabiswajit,

This project wasn't accepted yet as a GSOC project, so we shouldn't start working on it.
You can try to find other bugs on the console to work on, in order to get familiar with the codebase and the development workflow.

Hi! This project is amongst the list of GSOC 2020 Mozilla proposols in GitHub. Does that not mean it is accepted? By the way, is there a page where I can see the list of Mozilla projects that have been accepted for GSOC 2020?

this is not the place to discuss the GSOC project. Please reach me out through email if you want to talk about this

Flags: needinfo?(nchevobbe)

Hi, I would like to work on this.

sure miguel, thanks for helping us :)

Assignee: nobody → mroncancio19
Status: NEW → ASSIGNED
Flags: needinfo?(noitidart)

What's the state of this bug ?
It's really painful to not have this feature (fyi chrome devtools has it).
I'm generating some html from pdf contents and I've a ton of logs in my console and it's very uneasy to look for something especially when you're interested on messages before/after what you are looking for.
:miguel, if you don't work on it please step down as an assignee else could you give an ETA ?

Flags: needinfo?(mroncancio19)

Miguel obviously isn't active anymore, so I unassigned him now. Also, noitidart is only the reporter, not a mentor for this bug, so I also remove the needinfo request for them.

Calixte, feel free to jump in and provide a patch.

Sebastian

Assignee: mroncancio19 → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(noitidart)
Flags: needinfo?(mroncancio19)

Hi all, any updates on this?

Thanks, trying to avoid using Chrome for coding purposes right now, but a bit surprising (as someone new to coding at least) that it has this but Firefox doesn't...

Severity: normal → S3
See Also: → 1868747
You need to log in before you can comment on or make changes to this bug.