stzahi,

Hi
@derickr ,
The only way I found to use
@Xdebug
with Dockerized micro-services running concurrently AND using the same IDE is by running Xdebug on each of them in a separate port (and listening to multiple ports in the IDE).
It's messy and complicated to maintain.

Is there any better way? Can't find any reference to this in the docs.

Thanks! :)

derickr,
@derickr@phpc.social avatar

@stzahi @Xdebug does not listen on any port. It makes a connection to the IDE. You don't need to expose anything on containers for Xdebug. They just need to be able to make a connection to your IDE listening on a single port (9003 preferably, as that's the default).

stzahi,

@derickr @Xdebug
Thank you, but when the containers are all sending to port 9003, when one service is sending an Http request to another service, I receive the first request in the IDE debugger, but the second one ends out with a timeout as the second request seems to be holded by xdebug until the first one ends (and it doesn't ends because it depends on the second request.
Hope I'm understandable and sorry for my broken English...

derickr,
@derickr@phpc.social avatar

@stzahi @Xdebug If you're using PhpStorm, there is a setting for that: https://www.jetbrains.com/help/phpstorm/simultaneous-debugging-sessions.html#increase-the-number-of-simultaneous-debugger-connections

If you're using another IDE, then you need to tell me which one :-)

stzahi,

@derickr @Xdebug

Is there anything for Codium? (Foss Vs code)

derickr,
@derickr@phpc.social avatar

@stzahi @Xdebug If it uses DAB, then the VS Code plugin for Xdebug should work. But I can't say I've even heard of Codium yet.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • kavyap
  • InstantRegret
  • ethstaker
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • tacticalgear
  • slotface
  • Durango
  • khanakhh
  • rosin
  • everett
  • Leos
  • vwfavf
  • normalnudes
  • osvaldo12
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ngwrru68w68
  • anitta
  • provamag3
  • tester
  • modclub
  • megavids
  • JUstTest
  • All magazines