C++

From Flooxs
Revision as of 23:26, 28 September 2010 by Nrowsey (talk | contribs) (New page: You can't use a debugger directly on your tcl script. But you can use a debugger on flooxs as it is running, because flooxs is c++ under the hood. Below gives an example of how to use [htt...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

You can't use a debugger directly on your tcl script. But you can use a debugger on flooxs as it is running, because flooxs is c++ under the hood. Below gives an example of how to use gdb, the GNU debugger. From bash, run:

$ gdb $FLXSHOME/src/flooxs.new
(gdb) break FLPS_panic
(gdb) run -device zerobias.tcl

then, when it breaks, use these common gdb commands:

where (stack trace and calling sequence)
cont (continue executing)
step
next
print var
list
list device_tcl
list 10,30

other options:

(gdb) break Newton::Solve  (run code)
(gdb) set var UpdateDebug=1 (continues)