I have a really evil bug in a section of code and am trying to use the FBdebugger to nail it. I have narrowed the problem down to 1 for-next loop and the code inside this, however when I try to step inside the loop, the debugger states -inaccessible line - not executable.
Thing is, this line is executable and is executed, its the print statement I've maked below. It prints to the console when the code runs, so why can't I step into this loop? Do I need another option at compile other than -g?
Code: Select all
for count=1 to temp_num_obj
obj_loc=objects(count)->location 'for objects in a room the obj_loc will be positive starting at 1
print objects(count)->long_name,obj_loc '<<<<<trying to step to here
if bit(objects(count)->status,5) then 'if its currently being worn
if obj_loc>0 then 'if obj_loc is a room
if obj_loc>0 then
print "object>>> ";count,objects(count)->long_name;" is in ";obj_loc
add_tag(db(obj_loc).arrangements(0),count) 'rooms do not have a location, but objects within rooms do
else 'for objects in or around others the obj_loc will be negative and relate to the 1st object (1+num_rooms)
obj_link=abs(obj_loc)+num_rooms 'need to add number of rooms as objects are stored from object 1 and not db pos 1 in data