Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
communication between to interpreters
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
  12 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
 
core powe  
View profile  
 More options Feb 9, 4:14 am
Newsgroups: comp.lang.tcl
From: core powe <corep...@gmail.com>
Date: Thu, 9 Feb 2012 01:14:14 -0800 (PST)
Local: Thurs, Feb 9 2012 4:14 am
Subject: communication between to interpreters
I have an tcl project running with tclsh.exe....  In this project I
would like to create an other Interpreter in a separate application as
an small debugger for global variables.

One possibility is to use DDE Server/Client.  I'm wondering if it's
possible to use TCOM or COM/DCOM  zu communicate between the two tcl
interpreters?

Thankful for every help :)

core


 
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.
Harald Oehlmann  
View profile  
 More options Feb 9, 5:03 am
Newsgroups: comp.lang.tcl
From: Harald Oehlmann <wortka...@yahoo.de>
Date: Thu, 9 Feb 2012 02:03:42 -0800 (PST)
Local: Thurs, Feb 9 2012 5:03 am
Subject: Re: communication between to interpreters
On 9 Feb., 10:14, core powe <corep...@gmail.com> wrote:

> I have an tcl project running with tclsh.exe....  In this project I
> would like to create an other Interpreter in a separate application as
> an small debugger for global variables.

> One possibility is to use DDE Server/Client.  I'm wondering if it's
> possible to use TCOM or COM/DCOM  zu communicate between the two tcl
> interpreters?

You may use the tcllib comm package:
package require comm
comm::comm config -local 0 -port 1991

For debugging, there are also tkconsole, TclInspector and TclDebugger

(from the book "Tcl8.5 Network Programming)

-Harald


 
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.
M. Strobel  
View profile  
 More options Feb 9, 6:42 am
Newsgroups: comp.lang.tcl
From: "M. Strobel" <sorry_no_mail_h...@nowhere.dee>
Date: Thu, 09 Feb 2012 12:42:29 +0100
Local: Thurs, Feb 9 2012 6:42 am
Subject: Re: communication between to interpreters
Am 09.02.2012 10:14, schrieb core powe:

> I have an tcl project running with tclsh.exe....  In this project I
> would like to create an other Interpreter in a separate application as
> an small debugger for global variables.

> One possibility is to use DDE Server/Client.  I'm wondering if it's
> possible to use TCOM or COM/DCOM  zu communicate between the two tcl
> interpreters?

> Thankful for every help :)

> core

Check if you just can run the application for debugging purpose in a shell like
tclsh, wish, tkcon.

/Str.


 
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.
Ocsimize  
View profile  
 More options Feb 9, 8:24 am
Newsgroups: comp.lang.tcl
From: Ocsimize <oliviercolin...@gmail.com>
Date: Thu, 9 Feb 2012 05:24:47 -0800 (PST)
Local: Thurs, Feb 9 2012 8:24 am
Subject: Re: communication between to interpreters
Hi !

Maybe the package "comm" in Tcllib ? From the descrption : "The comm command provides an inter-interpreter remote execution facility much like Tk's send(n), except that it uses sockets rather than the X server for the communication path. As a result, comm works with multiple interpreters, works on Windows and Macintosh systems, and provides control over the remote execution path."

O.


 
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.
core powe  
View profile  
 More options Feb 9, 10:09 am
Newsgroups: comp.lang.tcl
From: core powe <corep...@gmail.com>
Date: Thu, 9 Feb 2012 07:09:40 -0800 (PST)
Local: Thurs, Feb 9 2012 10:09 am
Subject: Re: communication between to interpreters
Hello to all.

@Harald Oehlmann

> For debugging, there are also tkconsole, TclInspector and TclDebugger
> (from the book "Tcl8.5 Network Programming)

Where can I find this book or this TclInspector/ TclDebugger? ^^

I think I have to describe my problem properly :)
The first application (tclsh.exe= main project) runs continuously
executing a long commando list and prints at times reports to the
screen.
Actually there is no time to stop and wait for requests from the
second Application (tclsh.exe= debugger).
The project shoud work in this way that the main project is doing his
work until a request from the debugger (reading a global variable for
example) arrives to be answerd.

It would be much better to have an interrupt handling, but I know tcl
does'n support this. So I thought to solve this problem with an event
handling by using DDE Server/Client configuration.... Or how do you
think? Are there other possibilities to solve the problem?
Maybe there are existing debuggers I can use...

Thank you for help :)


 
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.
Harald Oehlmann  
View profile  
 More options Feb 9, 10:48 am
Newsgroups: comp.lang.tcl
From: Harald Oehlmann <wortka...@yahoo.de>
Date: Thu, 9 Feb 2012 07:48:20 -0800 (PST)
Local: Thurs, Feb 9 2012 10:48 am
Subject: Re: communication between to interpreters
On 9 Feb., 16:09, core powe <corep...@gmail.com> wrote:
> Hello to all.

> @Harald Oehlmann> For debugging, there are also tkconsole, TclInspector and TclDebugger
> > (from the book "Tcl8.5 Network Programming)

> Where can I find this book or this TclInspector/ TclDebugger? ^^

http://wiki.tcl.tk/26647
IMHO very good book about the TCL universe.
Even good if you don't do any network programming.

> It would be much better to have an interrupt handling, but I know tcl
> does'n support this. So I thought to solve this problem with an event
> handling by using DDE Server/Client configuration.... Or how do you
> think? Are there other possibilities to solve the problem?
> Maybe there are existing debuggers I can use...

I think the comm package will give you what you need.
you initialise it and start the event queue (vwait).

On the other hand there are the following applications which might
help you (beside the ones I already mentioned):
tkcon
tkinspect
ram debugger

Unfortunately, I am the wrong person to ask. I don't do it this way
personally (expect using tkcon).
-Harald


 
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.
Gerald W. Lester  
View profile  
 More options Feb 9, 11:37 am
Newsgroups: comp.lang.tcl
From: "Gerald W. Lester" <Gerald.Les...@KnG-Consulting.net>
Date: Thu, 09 Feb 2012 10:37:52 -0600
Local: Thurs, Feb 9 2012 11:37 am
Subject: Re: communication between to interpreters
On 2/9/12 9:09 AM, core powe wrote:

DDE, COM, comm package it does not matter -- events are only processed when
you "tell" tcl to go into the event loop (i.e. Tcl does not do interrupt
processing).

ActiveState offers a debugger as part of its TDK.

You need to modify your program to add: update idletask

This should be done at least at the beginning or end of the main loop (or
where ever you loop doing your processing).

--
+------------------------------------------------------------------------+
| Gerald W. Lester, President, KNG Consulting LLC                        |
| Email: Gerald.Les...@kng-consulting.net                                |
+------------------------------------------------------------------------+


 
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.
core powe  
View profile  
 More options Feb 10, 3:39 am
Newsgroups: comp.lang.tcl
From: core powe <corep...@gmail.com>
Date: Fri, 10 Feb 2012 00:39:19 -0800 (PST)
Local: Fri, Feb 10 2012 3:39 am
Subject: Re: communication between to interpreters
Hello Gerald.

I use this activeState debugger already with eclipse IDE, but how can
I remotely debug my running tclsh project with it without influencing
my main application?  I just want to have an small debugger for
checking the values of global variables.

What exactly is the tcl event loop? I think you mean this part of
code:

proc loop {} {....}

after idle loop
...

black


 
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.
Gerald W. Lester  
View profile  
 More options Feb 10, 9:24 am
Newsgroups: comp.lang.tcl
From: "Gerald W. Lester" <Gerald.Les...@KnG-Consulting.net>
Date: Fri, 10 Feb 2012 08:24:55 -0600
Local: Fri, Feb 10 2012 9:24 am
Subject: Re: communication between to interpreters
On 2/10/12 2:39 AM, core powe wrote:

> Hello Gerald.

> I use this activeState debugger already with eclipse IDE, but how can
> I remotely debug my running tclsh project with it without influencing
> my main application?

Any and every debugger influences the application being debugged.

>  I just want to have an small debugger for
> checking the values of global variables.

> What exactly is the tcl event loop?

Please search on http://wiki.tcl.tk

--
+------------------------------------------------------------------------+
| Gerald W. Lester, President, KNG Consulting LLC                        |
| Email: Gerald.Les...@kng-consulting.net                                |
+------------------------------------------------------------------------+


 
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.
Harald Oehlmann  
View profile  
 More options Feb 13, 5:02 am
Newsgroups: comp.lang.tcl
From: Harald Oehlmann <wortka...@yahoo.de>
Date: Mon, 13 Feb 2012 02:02:12 -0800 (PST)
Local: Mon, Feb 13 2012 5:02 am
Subject: Re: communication between to interpreters
On 10 Feb., 15:24, "Gerald W. Lester" <Gerald.Les...@KnG-

Consulting.net> wrote:
> On 2/10/12 2:39 AM, core powe wrote:
> > What exactly is the tcl event loop?
> Please search onhttp://wiki.tcl.tk

We are sorry, it is not waht you wrote.
As it is a basic language element of TCL, I would recomment to use a
TCL book or read the wiki.
Please come back if questions get more precise,
Harald

 
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.
core powe  
View profile  
 More options Feb 13, 8:56 am
Newsgroups: comp.lang.tcl
From: core powe <corep...@gmail.com>
Date: Mon, 13 Feb 2012 05:56:01 -0800 (PST)
Local: Mon, Feb 13 2012 8:56 am
Subject: Re: communication between to interpreters
Hello :)

Sorry for asking TCL basics ;)

I checked out the ramdebugger. But with this tool a can't Read global
variables from the main project....

Is there a better debugger awailable?

black


 
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.
tombert  
View profile  
 More options Feb 14, 2:53 am
Newsgroups: comp.lang.tcl
From: tombert <tomb...@live.at>
Date: Mon, 13 Feb 2012 23:53:39 -0800 (PST)
Local: Tues, Feb 14 2012 2:53 am
Subject: Re: communication between to interpreters
You could try "Komodo IDE"

 
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 »