Board index FlightGear Development Nasal

Nasal debug breakpoint

Nasal is the scripting language of FlightGear.

Nasal debug breakpoint

Postby jsb » Mon Jan 14, 2019 11:18 pm

Hi
while working with some nasal "core files" I had a need of selective backtraces to understand the code flow, e.g. when and where a function is called. This lead to an extension of the debug.nas, namely a class Breakpoint
It is maybe not exactly a breakpoint as in an interactive debugger but it allows to selectively dump some state information w/out killing the script.

Documentation: http://wiki.flightgear.org/Nasal_library/debug
Code should be merged soon to fgdata (next)
jsb
 
Posts: 285
Joined: Sat Oct 25, 2014 9:17 pm
Location: Hamburg, Germany
Callsign: D-JSB
Version: next
OS: Win7/Linux

Return to Nasal

Who is online

Users browsing this forum: No registered users and 3 guests