Skip to content

debugging appframewok

Forums Forums SIMPOL Programming debugging appframewok

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #79
    Jean Vallee
    Participant

    Trying to familiarize myself with appframework and came across this quirk: Set one breakpoint inside checkneedsave function Ran program (addressbook and payroll) Edited a single field On the menu, clicked Add Data Debugger stops on correct line but debug tools are turned off including continue thread execution. Very frustrating. How do I get around this? Also: Set single breakpoint in selrec function in toolbar Run app (addressbook or payroll) edit a single field click select next record button in toolbar Does not detect the record was changed and advances to the next record. Supposed to work this way? Jean Vallee

    #2038
    Michael
    Keymaster

    On 06/01/2013 17:12, JV wrote:
    > Trying to familiarize myself with appframework and came across this quirk:
    >
    > Set one breakpoint inside checkneedsave function
    > Ran program (addressbook and payroll)
    > Edited a single field
    > On the menu, clicked Add Data
    >
    > Debugger stops on correct line but debug tools are turned off including
    > continue thread execution.
    >
    > Very frustrating.
    >
    > How do I get around this?
    >
    > Also:
    >
    > Set single breakpoint in selrec function in toolbar
    > Run app (addressbook or payroll)
    > edit a single field
    > click select next record button in toolbar
    > Does not detect the record was changed and advances to the next record.
    > Supposed to work this way?
    >
    > Jean Vallee
    >

    The application framework is multi-threaded. At the point you reached, the debugger stopped, but was in the wrong thread. You have
    to go to the menu Debug->Thread Manager…. When the dialog comes up, select the correct thread, then click on "Set Focus" to
    change which thread the debugger is currently working in, and then close the dialog by clicking the close gadget. At that point
    you should see your variables, etc. and the debug items should be enabled.

    Ciao, Neil

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.