question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to pick exact tab to attach to if several tabs match urlFilter

See original GitHub issue

During my work I usually have several pages that will match urlFilter e.g. *example.com/app*:

http://client.staging.example.com/app/orders/order1
http://client.local.example.com/app/orders/order1
http://client.local.example.com/app/orders/order2
http://search.local.example.com/app/results

So I can compare behaviors/outputs/request between them and having only one tab open is not an option.

At this point when I run debug config with "type": "pwa-msedge", "request": "attach", it will attach to “random” tab that matches urlFilter.

Current Edge/Chrome debugger extensions provide ability to pick exact tab before attaching to it. Edge example

Would be great to have similar approach using built-in extension.

I was thinking that #437 will allow this, but apparently it does something else.


Version: 1.46.0-insider (user setup) Commit: 6849775440496504e0677ffcf2a46d47ad9130f5 Date: 2020-05-15T05:30:56.857Z OS: Windows_NT x64 10.0.18363

JavaScript Debugger (Nightly) Built-in v2020.5.417

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
connor4312commented, Jun 4, 2020

Sounds good. One way to diagnose path issues is adding a debugger; statement to your code, and then when it’s hit you can see the path of the readonly file that gets opened – that’s the path that js-debug thinks your source should be at.

0reactions
IllusionMHcommented, Jun 4, 2020

I’ve introduced some logic to preserve the original source paths and map between them.

Thanks I was able to have "webpack:///../*": "${webRoot}/*" for simple repro case 👍, but doesn’t work for main large project.

Will try investigate further and create new issue with details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot debug in VS Code by attaching to Chrome
When using the configuration url , vscode will search for a tab with the EXACT url and attach to it if found.
Read more >
Chrome Extensions Match patterns
Host permissions and content script matching are based on a set of URLs defined by match patterns. A match pattern is essentially a...
Read more >
Group and arrange tabs in Chrome browser
Arrange tabs "" ; To change the order of your tabs—Drag a tab along the top of the browser window. ; To pin...
Read more >
Working with the Tabs API - Mozilla - MDN Web Docs
Tabs let a user open several web pages in their browser window and ... Other times you might want to find a subset...
Read more >
Static URL filter
Select the Action to take against matching URLs: Exempt, Block, Allow, or Monitor. Confirm that Status is enabled. Select OK. 'Simple' Filter type....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found