最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How can I filter by host and port in Chrome's developer tools? - Stack Overflow

programmeradmin2浏览0评论

Debugging local app and would like to trace all calls to the backend running on localhost:8080. It's possible to filter on domain=localhost; however, this also grabs a ton of noise from calls to frontend assets running on localhost:9999. Is there any way to either include the port 8080 in the filter, or at least exclude port 9999?

domain:localhost:8080 doesn't work...


Related: it would also be helpful to filter on part of a path. For example, localhost:8080/foo/bar/baz ... if I could just filter on *bar* or *bar/baz* that would also do the trick.

Debugging local app and would like to trace all calls to the backend running on localhost:8080. It's possible to filter on domain=localhost; however, this also grabs a ton of noise from calls to frontend assets running on localhost:9999. Is there any way to either include the port 8080 in the filter, or at least exclude port 9999?

domain:localhost:8080 doesn't work...


Related: it would also be helpful to filter on part of a path. For example, localhost:8080/foo/bar/baz ... if I could just filter on *bar* or *bar/baz* that would also do the trick.

Share Improve this question edited Mar 25, 2024 at 7:54 Pang 10.1k146 gold badges86 silver badges124 bronze badges asked Oct 8, 2020 at 13:43 Adam HughesAdam Hughes 16.3k14 gold badges94 silver badges139 bronze badges 6
  • 1 Try url:localhost:8080 or simply localhost:8080. – woxxom Commented Oct 8, 2020 at 13:49
  • Neither of these worksin my current chrome browser - do they in yours or were you just speculating? – Adam Hughes Commented Oct 8, 2020 at 14:02
  • 1 Oh, it's a new one. Works in Chrome Canary/dev. – woxxom Commented Oct 8, 2020 at 14:10
  • 1 domain:locahost you should be able to type in domain:localhost xxxxx/yyyy and it will filter – epascarello Commented Oct 8, 2020 at 14:11
  • 1 url:http://localhost:8000 worked for me, Chrome even autoplete it. Version: 89.0.4389.72 (Official Build) (64-bit) – manus Commented Mar 4, 2021 at 16:44
 |  Show 1 more ment

1 Answer 1

Reset to default 15

Use the url filter.

Domain filter will only filter on the hostname without the port. You'll have to use the url filter instead. For example, url:localhost:3000.

发布评论

评论列表(0)

  1. 暂无评论