debug logging in c++ firemonkey apps

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

Upload: brian-long

Post on 26-Jan-2017

914 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Debug Logging in C++ FireMonkey Apps

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

DEBUG LOGGING IN C++

FIREMONKEY APPSBrian Long

[email protected]://blong.com

http://blog.blong.com

Page 2: Debug Logging in C++ FireMonkey Apps

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

FMX PLATFORM SERVICE

IFMXLoggingService interface(or _di_IFMXLoggingService DelphiInterface template) Log() method

Page 3: Debug Logging in C++ 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 C++ FireMonkey Apps

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

SEEING LOG OUTPUTWin32/Win64

DelphiView, 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 C++ FireMonkey Apps

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

SEEING LOG OUTPUTiOS devices

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

macOS Console / stdout (via Delphi WriteLn)

Page 6: Debug Logging in C++ FireMonkey Apps

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

Brian [email protected]://blong.com

http://blog.blong.com