How do I force the linker to include a function I need during debugging?

后端 未结 3 465
名媛妹妹
名媛妹妹 2021-01-04 11:13

I often make small methods to assist debugging, which aren\'t used in the actual program. Typically most of my classes has an AsString-method which I add to the watches. I k

3条回答
  •  悲&欢浪女
    2021-01-04 11:59

    You can make function published.

      TMyClass = class
        F : integer;
      published
        function AsString : string;
      end;
    

    And switch on in 'Watch Properties' 'Allow function calls'

提交回复
热议问题