1. Arturo Jasso
  2. PowerServer Mobile (Obsolete)
  3. Wednesday, 26 June 2019 21:29 PM UTC

Hello, I have a question, how can I do code debugging for mobile applications? I've seen that on the web if you can. Regards!

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 27 June 2019 16:34 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 1

Hi Arturo;

   The PowerServer "debugger" feature only works with Web Apps. However, here is what I do for Mobile application debugging ...

1) Publish the Mobile App as a web app. Since PB2017R3, the PS Web feature is now included as well a Mobile.

2) Configure your IE web browser for debugging ... https://www.appeon.com/support/documents/appeon_online_help/2017/powerserver_toolkit_user_guide/ch06s01.html

3) Use the Web debugger to step through your problem code. Most likely, your code will fail the same in a Web app vs mobile deployment. For example:

4) Once you locate the problem code and repair it ... deploy & test your Mobile App again.

5) For extra help in debugging Web/Mobile app issues, check the PS logs. Tip: Set "Development" or "Debug" mode in AEM for more logging information on your Web/Mobile App's execution.

6) For client side debugging, try logging to the App's local console. For example:

7) Of course, there is still the good old MessageBox() command as well.

HTH

Regards ... Chris

 

Comment
  1. Arturo Jasso
  2. Thursday, 27 June 2019 16:40 PM UTC
Thanks for the information, I'll try it!
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Sunday, 30 June 2019 12:58 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 2

Also beware of this:

If your application uses 32 bit visual ActiveX controls, you will have to use powerserver 32 bits.

You cannot debug powerserver 32 bits, as it will soon generate some sort of error saying that your application object is bigger than 512kb (even when it's not). It's a bug they haven't fixed yet.

So in that case you will have to also install 64 bit powerserver to be able to debug (anything but activex of course).

my 2cts.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.