It would seem you are executing the (listening-port~
(get-remote-listener)) command *inside* the debuggee if it is
returning the debuggee port.
All debugger - debuggee communication uses JRM (Jazz Remoting Module).
In JRM a single port is used to communicate with any process. That
port is assigned when the remote listener is started and by default it
is 'any meaning that TCP/IP will be asked to assign any available
port.
To solve your problem either
- execute (listening-port~ (get-remote-listener)) inside the debugger
and communication this information to your debuggee or even simpler
- you can specify an explicit listener port for any Jazz process
through the -listen command switch so that for instance you could
launch jedi like this: jedi -listen :4000 and then communicate to the
debugger on port 4000
Guillaume