Forum > Debugger
How to See MyBitmap.width in the Watches
(1/1)
Possum:
Hi
I would like to see MyBitmap.with from the debugger. I tried to add
MyBitmap.width
In the watch list but this didn't work. I got
<Error: Type TBITMAP has no component named WIDTH.>
Is there a way for me to see component details like width in the debugger.
Thank You.
Handoko:
You can (temporary) use a variable when debugging:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---var TestValue: LongInt; // ... TestValue := MyBitmap.Width;
wp:
In the debugger you can query properties which map directly to object variables, i.e. which do not have a getter function, usually by asking for the property name with prefix "F", e.g. bitmap.FPixelFormat for the pixelformat. Unfortunately, the property "Width" is provided by a getter function GetWidth and thus cannot be evaluated this way, and you must use Handoko's way.
Navigation
[0] Message Index