Skip to content

kmaehashi/xojo-call-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Call Tracer for Xojo

This is a tiny hack to automatically insert code that prints its name for every method and event call.

How To Use

  1. Open the Xojo binary (Xojo.app/Contents/MacOS/Xojo) with a binary editor and replace const CurrentMethodName = " with #if CALL_TRACE Then Trace ". Make sure to take a backup before doing this!

    You can do this by this one-liner: perl -pi.backup -e 's|const CurrentMethodName = "|#if CALL_TRACE Then Trace "|' '/Applications/Xojo 2015 Release 2.3/Xojo.app/Contents/MacOS/Xojo'

  2. Add the CallTracer folder to your project.

  3. Just build and run. Now method and event calls are automatically printed to the system log.

Downsides

  • Execution speed slows down.
  • CurrentMethodName constant becomes unavailable (will become CurrentMethodName.NotAvailable).

About

Automatically Print Trace for Method & Event Calls in Xojo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages