ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tdk
tdk
Re: [TDK] Setting auto load path in debugger.
by Andreas Kupries other posts by this author
Apr 2 2009 1:18PM messages near this date
view in the new Beta List Site
[TDK] Setting auto load path in debugger. | Re: [TDK] Setting auto load path in debugger.
Oops, hit send without anything typed.

Patrick Finnegan wrote:
>  How do I set the TCLLIBPATH environment variable in the TCLKit debugger?
>  
>  E.G.  in a script I use:
>  
>  set TCLLIBPATH="C:/EclipseWorkSpaces/DB2Admin/DB2Admin/Tcl/proclib"
>  tclsh myscript.tcl
>  
>  I need to debug myscript.tcl and pick up the procs in the proclib
>  using the auto_path variable and tclindex file created by
>  "auto_mkindex".

The debugger is not modifying the environment at all, so whatever environment 
the debugger sees the launched/debugged application should see as well.

So, have you tried to set TCLLIBPATH before starting the debugger ?

Note that the debugger itself is not influenced by setting this environment 
variable, as it is a starpack, i.e. self-contained.

The value should be passed through the various processes to your tclsh.

An alternative would be to write a file 'setupscript.tcl' which extends the 
auto_path as you need it and then sources myscript.tcl. Then you can use 
'setupscript.tcl' as the script to debug.


Andreas.
_______________________________________________
TDK mailing list
TDK@[...].com
http://listserv.ActiveState.com/mailman/listinfo/tdk
Thread:
Patrick Finnegan
Andreas Kupries
Andreas Kupries

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved