Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Remote Debugger Port
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
magnan  
View profile  
 More options May 14 2009, 11:22 am
From: magnan <framag...@gmail.com>
Date: Thu, 14 May 2009 08:22:05 -0700 (PDT)
Local: Thurs, May 14 2009 11:22 am
Subject: Remote Debugger Port
Hi,

I am trying to launch remote process and attach them to the Jedi
debugger. For that I use the following function:

(define (instanciate-module moduleType  Debugger-Port)
  (let ((command (car (command-line)))
        (args  (list "-run" "GIT-Module-Loader"
                 "-debugger" (string-append "127.0.0.1:" (number-

>string Debugger-Port))

                 "-interactive" "true"
                 "-module-name" moduleType)))
    (open-process (list path: command
                    arguments: args))))

My problem is about determining the Debugger-Port argument. This is
the port the Jedi debugger listens at.

(listening-port~ (get-remote-listener))

but it seems to return the port of the debuggee instead of the port of
the debugger.

How can I get the debugger port?

Thank you,
Francois Magnan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guillaume Cartier  
View profile  
 More options May 20 2009, 7:53 am
From: Guillaume Cartier <gcart...@jazzscheme.org>
Date: Wed, 20 May 2009 07:53:39 -0400
Local: Wed, May 20 2009 7:53 am
Subject: Re: Remote Debugger Port
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google