~ chicken-core (chicken-5) /feathers.mdoc
Trap1.\" Copyright (c) 2007-2022, The CHICKEN Team2.\" All rights reserved.3.\"4.\" Redistribution and use in source and binary forms, with or without5.\" modification, are permitted provided that the following conditions6.\" are met:7.\" 1. Redistributions of source code must retain the above copyright8.\" notice, this list of conditions and the following disclaimer.9.\" 2. Redistributions in binary form must reproduce the above copyright10.\" notice, this list of conditions and the following disclaimer in the11.\" documentation and/or other materials provided with the distribution.12.\" 3. The name of the authors may not be used to endorse or promote products13.\" derived from this software without specific prior written permission.14.\"15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.18.\" IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.25.\"26.\"27.Dd Apr 26, 201728.Dt FEATHERS 129.Os30.Sh NAME31.Nm feathers32.Nd a simple source-level debugger for CHICKEN Scheme33.Sh SYNOPSIS34.Nm35.Op Ar OPTION ...36.Op Ar PROGRAM Ar ARGUMENTS ...37.Sh DESCRIPTION38.Nm39runs a program compiled with CHICKEN Scheme and allows basic40source-level debugging like setting breakpoints, single-stepping and41inspection of procedure arguments and global variables.42.Pp43The Scheme code must be compiled with debug-level 3 for debugging to be44possible. Communication with the debugger takes place by exchanging45messages over a TCP socket, the address and port being given by the46environment variable47.Ev CHICKEN_DEBUGGER48which holds a connection address of the form49.Ao ADDRESS Ac : Ns Ao PORT Ac .50.Pp51.Ar PROGRAM52must give the path to the executable that is to be run,53.Ev PATH54is not searched.55.Pp56The program accepts following arguments:57.Bl -tag -width Ds58.It Fl help59Shows a list of supported command-line options.60.It Fl n61Do not load the default startup file62.Pa .feathers .63.It Fl d64TODO: Document this65.It Fl dir Ar DIRECTORY66Add67.Ar DIRECTORY68to the list of searched paths for locating source files.69.It Fl port Ar PORT70Select a different TCP port than the default71.Pq 9999 .72.El73.Sh ENVIRONMENT74The following environment variables change the behaviour of75.Nm Ns :76.Bl -tag -width CHICKEN_DEBUGGER77.It Ev CHICKEN_DEBUGGER78Should hold a TCP server address and port where the debugger is listening.79This variable is set by the debugger when a program is run from it, and80defaults to localhost:999981.El82.Sh EXIT STATUS83.Ex -std84.Sh SEE ALSO85.Xr chicken 1 ,86.Xr csc 1 ,87.Xr csi 188.Pp89More information can be found in the90.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".91.Sh AUTHORS92.An The CHICKEN Team93.Sh BUGS94Submit bug reports by e-mail to95.Mt chicken-janitors@nongnu.org