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
|