Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Debugging Table Cells

[ Edited ]

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
Solution
Solution
Accepted by topic author Pedru
‎01-19-2017 10:09 AM

Re: Debugging Table Cells

[ Edited ]

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

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

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.