⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install

📁 Linux下的tcl语言调试器
💻
字号:
This file is INSTALL.  It contains installation instructions for theTcl debugger.If you are installing on a single architecture, or are just trying itout to see whether it's worth installing, follow the SimpleInstallation below.  If you are installing this on multiplearchitectures or the "Simple Installation" instructions are notsufficient, see "Sophisticated Installations" below.--------------------Simple Installation--------------------Run "./configure".  This will generate a Makefile (from a prototypecalled "Makefile.in") appropriate to your system.The configure script allows you to customize the debuggerconfiguration for your site; for details on how you can do this, type"./configure -help" or refer to the autoconf documentation (notincluded here).  The debugger's configure supports the following flagsin addition to the standard ones:	--enable-shared		If this switch is specified, the debugger				will compile itself as a shared library if				it can figure out how to do that on this				platform.	--disable-load		This switch is ignored so that you can				configure the debugger with the same				configure command as Tcl.  If you want to				disable dynamic loading, configure Tcl				with this flag and then reconfigure the				debugger.	--enable-gcc		This switch is ignored so that you can				configure the debugger with the same				configure command as Tcl.  If you want to				enable gcc, configure Tcl with it and				then reconfigure the debugger.  The				debugger will inherit the definition that				way.  It is not safe to modify the				Makefile to use gcc by hand.  If you do				this, then information related to dynamic				linking will be incorrect.Edit the Makefile and change any definitions as appropriate for yoursite.  All the definitions you are likely to want to change areclearly identified and described at the beginning of the file.Run "make".This will build the library libtcldbg.a that you can then experimentwith.  "make install" will install the library.-------------------Modifying Your Application to Use the Debugger-------------------There are a number of ways to hook the debugger into your application.1) The absolute simplest way is add the following line at some pointin your initialization.  (It always returns TCL_OK.)	Tcldbg_Init(interp);This will add a "debug" command to your interpreter.  (Inside yourapplication, "debug 1" will start the interpreter.  "debug 0" willstop it.  When the debugger prompts for a command, type "h" for help.)In the same file, add the following directive before the Dbg_On call:	#include "tcldbg.h"Add the libtcldebug.a to your link line.  Re-Make your application.Print the document tcl-debug.ps to get the complete instructions onhow to hook the debugger into any Tcl program.  This describes otheroptions such as invoking the debugger on ^C, as well as the debuggercommands themselves.2) This is the same as (1) but you can change the name of the debuggercommand to be something else besides "debug".  Just add the line:	Dbg_DefaultCmdName = "whatever";before Tcldbg_Init(interp).  Now follow remaining instructions for (1).3) You don't have to use the default command binding.  Create your owncommand.  Internally, it should call Dbg_On(interp,0) where you wantto start the debugger.  Another good place to invoke Dbg_On is from acommand-line flag such as "-d".  For example:	while (c = getopt(arg,c,argv,"d")) {		switch (c) {		case 'd': Dbg_On(interp,0); break;		}	}Add the usual include and link directives as described in (1).Print the document tcl-debug.ps to get the complete instructions onhow to hook the debugger into any Tcl program.  This describes otheroptions such as invoking the debugger on ^C, as well as the debuggercommands themselves.--------------------Sophisticated Installations--------------------The following instructions provide some suggestions for handlingcomplex installations.--------------------Multiple-Architecture Installation--------------------You might want to compile a software package in a different directoryfrom the one that contains the source code.  Doing this allows you tocompile the package for several architectures simultaneously from thesame copy of the source code and keep multiple sets of object files ondisk.To compile the package in a different directory from the onecontaining the source code, you must use a version of make thatsupports the VPATH variable.  GNU make and most other recent makeprograms can do this.cd to the directory where you want the object files and executables togo and run configure.  configure automatically checks for the sourcecode in the directory that configure is in and in ..  If configurereports that it cannot find the source code, run configure with theoption --srcdir=dir, where dir is the directory that contains thesource code.--------------------Changing Defaults--------------------Some of the defaults in "configure" can be overridden by environmentvariables.  This is a convenience intended for environments thatlikely affect any program that you configure and install.The following variables are supported:CC		C compiler program.		Default is `cc', or `gcc' if `gcc' is in your PATH.INSTALL		Program to use to install files.		Default is `install' if you have it, `cp' otherwise.These settings can also be given on the command line.  For example,you could tell configure about a particular C compiler from aBourne-compatible shell as follows:	CC='gcc -traditional' DEFS=-D_POSIX_SOURCEConfigure assumes that the Tcl source directory can be found in theparent directory of debugger.  Create a symbolic link in thedebugger's parent directory to where the Tcl directory is.  Bydefault, configure uses the latest release of Tcl that it can find.You can override this by creating a symbolic link of "tcl" whichpoints to the release you want.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -