(RDMLX) Debugging LongRange for LANSA

Please mark posts as being for RPG or RDMLX (LANSA) developers.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
PascalvanDoorn
Posts: 5
Joined: Sat May 05, 2012 5:06 pm
Location: Amsterdam, The Netherlands

(RDMLX) Debugging LongRange for LANSA

Post 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 3440 times
    • In Settings select Development:
      development.jpg
      development.jpg (21.25 KiB) Viewed 3440 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 3440 times
    • Return to Settings.
    • Touch Done to run your schema.
    • In the menu, select the menu option you want to debug
Post Reply