Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple connections? #221

Open
sandinmyjoints opened this issue Nov 5, 2019 · 6 comments
Open

Multiple connections? #221

sandinmyjoints opened this issue Nov 5, 2019 · 6 comments

Comments

@sandinmyjoints
Copy link
Contributor

This is a fantastic package -- thanks for it @NicolasPetton! I got it up and running with both Node apps running Docker and client-side apps bundled with webpack with only an hour or two of effort, most of it on getting sourcemaps to work with webpack (our webpack configurations are fairly complex, but in the end, the changes I had to make to the default mapping were actually tiny!).

Anyway, I was wondering if there are any plans to support multiple connections. It'd be great to have one debugging session open for the server and another for the client, rather than having to switch between them.

@NicolasPetton
Copy link
Owner

NicolasPetton commented Nov 5, 2019 via email

@sandinmyjoints
Copy link
Contributor Author

sandinmyjoints commented Nov 7, 2019

Thanks for the reply, sounds good!

Separate question: I've noticed that when I have a chrome debugging session open, and then I do indium-launch with the same chrome configuration, a new chrome tab is opened, but at least sometimes, indium continues to communicate with the previous tab. Is there something in the chrome debugging protocol that identifies which tab to communicate with? Maybe that's this? https://chromedevtools.github.io/devtools-protocol/tot/Target

@NicolasPetton
Copy link
Owner

NicolasPetton commented Nov 8, 2019 via email

@sandinmyjoints
Copy link
Contributor Author

Hm, what defines active? In my experience, it does not always communicate with the most recently launched tab (which has focus -- I'm not switching tabs manually or otherwise touching the browser). It's not a big problem -- I run window.alert("it's me") in the repl and whichever tab speaks up is the one indium is talking to :)

@NicolasPetton
Copy link
Owner

That's really odd, it's an issue I never have. The active tab is the current tab in Chrome, and it always work for me.

What version of Chrome/Chromium are you using?

@jZhangTk
Copy link

I'd also like to see multiple connections since the project I'm working on has multiple services and sometimes I need to debug more than one service at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants