Debugging Hints

A useful debugging tool is to run gnetlist in interactive mode. This is done by using the ``-i'' option to gnetlist. This will give you a shell where you may enter scheme commands. This provides a simple way to examine various variables and try out various functions.

An example of running gnetlist in interactive mode is shown below.

% gnetlist -i ../../gnetlist/examples/switcap/*.sch
gEDA/gnetlist version 20041228
gEDA/gnetlist comes with ABSOLUTELY NO WARRANTY; see COPYING for more details.
This is free software, and you are welcome to redistribute it under certain
conditions; please see the COPYING file for more details.

Loading schematic [../../gnetlist/examples/switcap/analysis.sch]
Loading schematic [../../gnetlist/examples/switcap/ckt.sch]
Loading schematic [../../gnetlist/examples/switcap/clocks.sch]
gnetlist> all-unique-nets
("unnamed_net6" "unnamed_net5" "unnamed_net4" "OUT" "unnamed_net3"
 "unnamed_net2" "unnamed_net1" "GND")
gnetlist> packages
("TIMING" "CLK1" "S7" "S8" "S6" "S5" "C3" "S4" "C2" "C1" "E1" "S3"
 "S1" "V1" "S2" "OPTIONS" "TITLE" "ANA1")
gnetlist> (quit)
%



Ales Hvezda 2006-01-23