CONSOLE TO PRINT THE DATA OF LOCAL VARIABLE

Is there any feasability to print the value of a local variable in the runtime & the value it has in the console.  (Like other programming languages for debugging)

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

      and   already explained different ways of debugging.

    In addition, If you want to print local variable value in logs, you can try logmessage plug-in (community.appian.com/.../log-a-message).

    a!localVariables(
      local!data: "Message printed by logmessage function..........",
      local!info: logmessage("ERROR", local!data),
      local!data
    )

    Output:

    The following will be printed in tomcat-stdOut.log file:
    2024-06-11 07:24:30,614 [http-nio-8080-exec-995] ERROR com.incessant.plugins.logMessageMain.LogMessage - Message printed by logmessage function..........

    I hope this helps.

Reply
  • 0
    Certified Associate Developer

      and   already explained different ways of debugging.

    In addition, If you want to print local variable value in logs, you can try logmessage plug-in (community.appian.com/.../log-a-message).

    a!localVariables(
      local!data: "Message printed by logmessage function..........",
      local!info: logmessage("ERROR", local!data),
      local!data
    )

    Output:

    The following will be printed in tomcat-stdOut.log file:
    2024-06-11 07:24:30,614 [http-nio-8080-exec-995] ERROR com.incessant.plugins.logMessageMain.LogMessage - Message printed by logmessage function..........

    I hope this helps.

Children
No Data