Page 1 of 1

(RDMLX) Debugging LongRange for LANSA

Posted: Sat Oct 06, 2012 4:00 pm
by PascalvanDoorn
You can debug your LongRange program in the LANSA IDE. There is only one way to achieve this.
  1. First you must make sure your components are compiled with debug enabled.
  2. Now you must enable debug in the LANSA environment. Locate the file X_LANSA.PRO within the LANSA folder X_LANSA.
    Edit this file and add the following lines:
    • DBUG=Y
    • DBHT=<IDE IP Address:Debug Port>
    Example:
    DBUG=Y
    DBHT=10.31.0.82:51235
    This will redirect all requests to the selected IDE!!
  3. Now start the debug:
    • Switch to your iPhone/iPad
    • Start the LongRange app and display Settings by touching Settings button:
      settings.png
      settings.png (2.94 KiB) Viewed 3442 times
    • In Settings select Development:
      development.jpg
      development.jpg (21.25 KiB) Viewed 3442 times
    • In Development set Debug Mode on:
      This will allow the app to wait longer for the response.
      debug_mode.jpg
      debug_mode.jpg (14.75 KiB) Viewed 3442 times
    • Return to Settings.
    • Touch Done to run your schema.
    • In the menu, select the menu option you want to debug