facebook

Step into appears not to work in debugger

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #316823 Reply

    gmagill
    Member

    I have a simple button in a form and want to place a break-point inside the .js code that gets executed when the button is pressed to submit the form:

    /**
    * Perform custom actions upon return from form submission.
    *
    * @param {boolean} isSuccess true if all OK; otherwise false
    * @param {Object} data results of form processing; error message if isSuccess == false
    * @return {boolean} true if OK; otherwise false
    */
    phoneui.postSubmitForm_m1_Call_Me = function(isSuccess, data) {
    // add custom postubmission processing code here,
    // e.g., parse and process results & update UI controls with data as needed
    // return false to terminate form processing
    var AParty = data.AParty.text;
    var BParty = data.BParty.text;

    var URL = “http://myserver.com/cgi-bin/ons-de.cgi?A-Party=” + AParty + “&B-Party=” + BParty + “&Password=mypassword”;

    var result = true;
    if (isSuccess) {
    // process data
    result = true;
    } else {
    // submit failed
    // data = error msg
    result = false;
    }
    return result;
    }

    /**
    * Notification that the UI is about to transition to a new page.
    * Perform custom prepage-transition logic here.
    * @param {String} currentPageId
    * @param {String} targetPageId
    * @returns {boolean} true to continue transtion; false to halt transition
    */
    phoneui.prePageTransition = function(currentPageId,targetPageId) {
    // add custom pre-transition code here
    // return false to terminate transition
    return true;
    }

    I can set a break point at the function call phoneui.postSubmitForm_m1_Call_Me which stops correctly in the debugger, however, pressing the step-into button results in the function being sprung over and the debugger stops at the function phoneui.prePageTransition.

    Similarly, setting break points within the phoneui.postSubmitForm_m1_Call_Me function results in them simply being ignored.

    I also tried the step over button incase there was a mix up in naming conventions on the UI but that did not help either. No matter what I do, I can not step into the funciton to debug it.

    #316851 Reply

    support-michael
    Keymaster

    @gmagill
    I’m researching this now to see what’s up! My 1st thought is there is an error in the function that is causing the step-into action to fail for some reason – just a guess. Have you inspected the isSuccess and data parameters to ensure that they are returning successful values?

    #316867 Reply

    gmagill
    Member

    They are not appearing in the debugger at all as values that I could check.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Step into appears not to work in debugger

You must be logged in to post in the forum log in