Indium icon indicating copy to clipboard operation
Indium copied to clipboard

Multiple connections?

Open sandinmyjoints opened this issue 4 years ago • 6 comments

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.

sandinmyjoints avatar Nov 05 '19 03:11 sandinmyjoints

William Bert [email protected] writes:

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!).

Great to hear!

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.

Not at the moment (although that something I would like to have myself, so I might start working on it one day). There's nothing preventing multiple connections, it's just that the Emacs package does not support it.

Nico

NicolasPetton avatar Nov 05 '19 07:11 NicolasPetton

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

sandinmyjoints avatar Nov 07 '19 18:11 sandinmyjoints

William Bert [email protected] writes:

Separate question: I've noticed that when I have a chrome debugging sessino 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

Indium always connects to the active tab in Chrome, not the last open one. Could that be why?

NicolasPetton avatar Nov 08 '19 08:11 NicolasPetton

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 :)

sandinmyjoints avatar Nov 09 '19 01:11 sandinmyjoints

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?

NicolasPetton avatar Nov 21 '19 10:11 NicolasPetton

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.

jZhangTk avatar Nov 30 '19 22:11 jZhangTk