How to build the scripts debugger

$Id: debug.txt,v 1.1 1999/07/23 15:36:17 renaud Exp $


Debugging has always been a pain. Especially with nessusd plugins which
could only be debugged with printf().

NASL scripts can be debugged easily, using the 'nasl' utility, which
will allow you to run scripts, and determine at run time what they
should read via their sockets, whether a open_sock_tcp should be
successful and so on.

This is not a _real_ debugger. You can't stop it whenever you want,
not get a backtrace or whatever. However, you can control the network
connections, and this is what you want with Nessus scripts.

To build the nasl debugger :

cd libnasl/nasl
edit the Makefile
After '-DNESSUS_EXTENSIONS', add :
-DDEBUG_NASL

Then, do :
make clean && make && make nasl

And you will get the 'nasl' utility which will be handy to
debug your scripts.
