Posts Tagged ‘debugging’

5 Jul 2013
0

Appcelerator Tip: What to try if debugger does not launch or times out

In Appcelerator Titanium, when running my app in debug mode, it sometimes takes a few minutes to launch, returning a “Could not start debugger” message. This only happens now and then, so it was a bit difficult to track.

The bad news is that I still can’t seem to find what’s causing the issue. The good news is that I know how to work around it.

What’s causing the problem:

In short, whenever I’m connected to the internet using 3G, my debugger stops working. I would still be able to build and run my mobile app in the iOS Simulator, as long as it’s not in debug mode.

How to work around the issue:

The workaround is to either work offline with your 3G disconnected, or you can connect via Ethernet or W-Fi. I’ve never had any issues running my debugger when offline or connected to a Network. It only seems to be an issue with my 3G connection.

I hope this helps the very few who might face this issue. I’d love some feedback on how to resolve this, but can’t seem to find anything online that can help me.

Cheers for now,
John
20 Jul 2012
4

A quick example of the Dynamic Content & Data View Controls used in an XPages App

Hi Everyone. I’ve finally made some time to test out a few features from the XPages Extension Library. It was a bit of a learning curve, but it’s looking good.

Click here to view a Demo of these Controls.

I apologize in advance if there’s a small delay when using this App. It’s been hosted on a Server in South Africa…so the Internet Line is to blame.

Anyways…below is a list of Controls I’m using in the XPages App:

1. On top you’ll see the XPages Debug Control that was created by Mark Leusink and is available on OpenNTF. It’s very cool in the sense that it allows you to print messages directly to the Control and not via the Server Console. It also allows you to see all Scoped Variables that are being used in the XPage. Finally, it has an awesome feature where you can execute SSJS Scripts and view the result. I am very happy with this Control.

2. I’m using the Application Layout to control the Look and Feel of the XPage. It’s always a massive time saver. Click here to view the Video from NotesIn9 that explains the Application Layout in more detail.

3. in the Left Section I’m using the Navigation Control made available in the XPages Extension Library. This was a trick and a half, but I managed to use Partial Refreshes for all my onclick events. This allows me to use 1 XPage and multiple Custom Controls.

4. Depending on loading time, you might see the XPage go into Standby during the Partial Refresh. This is thanks to the Standby Custom Control which is available for download from OpenNTF. This is an awesome feature that needs no additional resources to function.

5. I have 2 views in the Main Content Section. These are Data Views that I am using from the XPages Extension Library. It’s safe to say that I am currently using very basic functionality from the Data View. There’s a lot more that you can do with it.

6. The 2 Data Views exist in a Dynamic Content Control, also from the XPages Extension Library. I won’t go into too much detail about this except that the Dynamic Control keeps your XPage light, and only loads Controls when they are needed. Very awesome stuff.

I am quite happy with what I’ve achieved in the last 3 hours. I had to put a few hacks in place to make everything work with Partial Refreshes, but all in all it was quite easy to implement.

I highly recommend the XPages Extension Library Book. It’s a life saver.

Till next time. Enjoy :)

23 Feb 2012
11

Calling XPages Community to help with Advice on Debugging Xpages Apps

Hi everyone. There seems to be a lot of questions and frustration from many including myself on how best to debug one’s XPages Application.

I have decided to investigate online all possible debugging options that currently exist. As I find them I will list them in this Blog Post. By the end of this weekend I will be finalizing all collected data, and will create a Video Tutorial explaining and demonstrating the preferred methods of debugging. I will also contribute this video to David Leedy for his NotesIn9 Series.

What I am asking from the Community is to please add your 2 cents worth, by commenting on this Blog Post. If you have a better way of debugging XPages apps, or if you have further advice to give on existing findings, please join in and voice your thoughts and opinions.

Below is what I have so far.

Current Debugging Options:

1. Domino Debug Plugin on OpenNTF.org

2. Printing to Server Console using _dump and print() for Server Side JavaScript

3. Printing to Firebug Console for Client Side JavaScript.

4. Writing Log entries to OpenLog Database

 

Looking forward to your feedback.

Cheers,

John