cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging Table Cells

Experimenter
Experimenter

Hello Community,

 

I would love to know if anyone knows a way to debug certain table cells and see what method is changing or deleting its content. I'm working with a poorly documented project and was hoping not to go through every method one by one in hope of finding and changing the correct method.

 

If you have any ideas or approaches i could use to find the method / methods that are operating on the table cell, please share them with me.

 

Thanks, Pedru.

3 REPLIES

Re: Debugging Table Cells

Phenom
Phenom

you could temporary add an observer for the attribute changed to the table. Add only a debug commad in to the observer method.

If a method changes a value in the table, the debugger opens and you can see the method in the call chain.


Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net


Re: Debugging Table Cells

Phenom
Phenom

one remark:

 

you need to reset the changed attribute to false.

 

This could be the observer method:

 

(attribute: string; oldValue: any)
is
do
	debug;
	tableFile.changed:=false;
end

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net


Re: Debugging Table Cells

Experimenter
Experimenter

This worked, although i had to look a bit to see the add observer button in the table view. I've now fixed some of the code up that i needed to change. You are as always a great help, thanks for taking the time to help devs like me and many others in solving problems in a time efficient way.

 

Thanks, Pedru.