Results 1 to 2 of 2

Thread: Isolating hard to find bugs

  1. #1
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,161
    Blog Entries
    22

    Isolating hard to find bugs

    If you have a situation where your code is misbehaving you can can get an execution trace by compiling with debug information which will help us identify what may be causing the issue internally.

    In the console workspace.

    Code:
    set debug on
    compile your_filename debug
    do your_filename
    Then look in the debug directory (c:\lianja\debug\debug.txt on windows) and you can see what was last executed before the crash.

    When DEBUG is ON the debug_client.txt file (in the same directory) will provide a trace of the internal object model calls to methods and property setters/getters as well.

    Remember to recompile without debug once you have isolated the problem as there is an obvious performance penalty with this.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  2. #2
    Senior Member
    Join Date
    Feb 2012
    Location
    Barrie, ON
    Posts
    191
    Quote Originally Posted by barrymavin View Post
    If you have a situation where your code is misbehaving you can can get an execution trace by compiling with debug information which will help us identify what may be causing the issue internally.

    In the console workspace.

    Code:
    set debug on
    compile your_filename debug
    do your_filename
    Then look in the debug directory (c:\lianja\debug\debug.txt on windows) and you can see what was last executed before the crash.

    When DEBUG is ON the debug_client.txt file (in the same directory) will provide a trace of the internal object model calls to methods and property setters/getters as well.

    Remember to recompile without debug once you have isolated the problem as there is an obvious performance penalty with this.

    Thank-you for explaining this feature as I can see it being very useful.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us