Debug Logging in Delphi FireMonkey Apps

6
CodeRage XI – Productivity, Platforms and Performance – embt.co/CodeRageXI DELPHI FIREMONKEY APPS Brian Long [email protected] http://blong.com http://blog.blong.com

Transcript of Debug Logging in Delphi FireMonkey Apps

Page 1: Debug Logging in Delphi FireMonkey Apps

CodeRage XI – Productivity, Platforms and Performance – embt.co/CodeRageXI

DEBUG LOGGING IN DELPHI

FIREMONKEY APPSBrian Long

[email protected]://blong.com

http://blog.blong.com

Page 2: Debug Logging in Delphi FireMonkey Apps

CodeRage XI – Productivity, Platforms and Performance – embt.co/CodeRageXI

FMX PLATFORM SERVICE

IFMXLoggingService interface Log method

Page 3: Debug Logging in Delphi FireMonkey Apps

CodeRage XI – Productivity, Platforms and Performance – embt.co/CodeRageXI

FMX TYPES UNIT HELPER

FMX.Types unit Log.d class method

Page 4: Debug Logging in Delphi FireMonkey Apps

CodeRage XI – Productivity, Platforms and Performance – embt.co/CodeRageXI

SEEING LOG OUTPUTWin32/Win64

C++BuilderView, Debug Windows, Event Log (Ctrl+Alt+V)

SysInternals DebugViewAndroid

DDMS (from Android SDK tools) Monitor (from Android SDK tools)

DDMS perspective, LogCat tab

Page 5: Debug Logging in Delphi FireMonkey Apps

CodeRage XI – Productivity, Platforms and Performance – embt.co/CodeRageXI

SEEING LOG OUTPUTiOS simulator

Console(.app)Debug, Open System Log... ( /⌘ )

iOS devices Xcode

Window, Devices ( 2⇧⌘ ) then click the up-triangle at the bottom left of the right hand panel

macOS Console / stdout (via WriteLn)

Page 6: Debug Logging in Delphi FireMonkey Apps

CodeRage XI – Productivity, Platforms and Performance – embt.co/CodeRageXI

Brian [email protected]://blong.com

http://blog.blong.com