--- gforth/debugs.fs 2004/05/14 17:09:22 1.10 +++ gforth/debugs.fs 2006/12/28 14:52:20 1.14 @@ -1,6 +1,6 @@ \ Simple debugging aids -\ Copyright (C) 1995,1997,1999,2002,2003 Free Software Foundation, Inc. +\ Copyright (C) 1995,1997,1999,2002,2003,2004,2005 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -52,11 +52,14 @@ defer .debugline ( nfile nline -- ) \ gf ' (.debugline) IS .debugline +: .debugline-stderr ( nfile nline -- ) + stderr >outfile .debugline outfile< ; + :noname ( -- ) - current-sourcepos .debugline ; + current-sourcepos .debugline-stderr ; :noname ( compilation -- ; run-time -- ) - compile-sourcepos POSTPONE .debugline ; -interpret/compile: ~~ \ gforth tilde-tilde + compile-sourcepos POSTPONE .debugline-stderr ; +interpret/compile: ~~ ( -- ) \ gforth tilde-tilde \G Prints the source code location of the @code{~~} and the stack \G contents with @code{.debugline}.