how to debug Sencha Touch 2 apps? - sencha-touch-2

How to debug Sencha touch 2?
I have been using Sencha Designer to create Sencha Touch 2 projects. I use Chrome for testing and now I want to breakpointing some of my code, how can I do that? Every time I refresh the page the break points are gone. I read something that I need to use the "?breakpoint" in the URL but I have no idea why is not working so far:
http://localhost/googlemaps/app.html?breakpoint
Also I realized the files i want to debug has a "_dc" parameter:
http://localhost/googlemaps/app/view/detalleMapa.js?_dc=1334242199729
Thanks!

With Chrome, you can start the "Developer Tools" window from the Wrench menu > Tools > Developer tools (keyboard shortcut is "Ctrl+Shift+I").
From there, you can select the "Scripts" tab and select your script in the list of all javascript files of your page.
Once you javascript file is shown, click on the line number to add a breakpoint.
If you want to debug dynamically loaded code (see Ext.Loader for details), you should add something like the following in your application:
Ext.Loader.setConfig({disableCaching: false});
Finally, reload your page and if the same file is loaded again, Chrome shall break the execution when executing that line.
Happy debugging!

So just an FYI... I found (search for "How to debug Sencha Touch 2 applications? - Part 1") that you can simply add "debugger;" to your script to get the Chrome debugger to break at that point.

With chrome we get an extension for sencha, called "App Inspector for sencha, using that extension you can view the components and do the debugging.

Connect your phone to your PC and put this in hte browser:
chrome://inspect/#devices

Related

How to recording current screen(not open popup) and audio by muaz-khan WebRTC-Experiment webrtc

muaz-khan WebRTC-Experiment
How to edit the extension to be as I want
Thanks
No its not possible to do within browser, its the matter of end user privacy.
You can build your own native Windows/Mac application to get rid of this
Chrome is providing screen/window/tab capturing through chooseDesktopMedia API, it is available only from chrome extension and we cant call this API from web app.
That demo extension is showing how to use chooseDesktopMedia.
We have no control on the screen selection popup, we can only choose the
combination of screen/window/tab/audio with the DesktopCaptureSourceType

How do I toggle source mapping in Safari 7?

The Safari 7 inspector is marvelously line-mapping compiled javascript back to the coffeescript it came from. There are times, though, when I want to interact directly with the compiled javascript in inspector. How do I toggle source mapping off so I can play with the raw javascript?
In Safari 7, Source Maps are not something that you have to toggle on or off they are just always on like resources are always available in the web developer tool. If you want to jump to the raw source you can:
"...Command-click the file name to jump to the position in the original source file."
The Safari Developer Guide has more info on this.

how to navigate to settings in android emulator using robotium?

I am a newbie for Robotium and till then I managed to learn a lot by directly writing test cases for public websites and sorted out several issues from answers in stackoverflow. now, I seemed to hit the wall at this (probably)trivial problem.
I would like to navigate to 'Settings' icon which is inside 'Apps' menu of the android emulator using some sort of 'robotium-solo' method.
This is my failed attempt:
solo.sendKey(KeyEvent.KEYCODE_HOME);
//solo.clickOnImageButton(2); // no success!
//solo.clickOnActionBarItem(2); // no success!
solo.clickOnText("Settings");
solo.clickOnText("Music");
I checked for any KEYCODE_var for home screen 'app' icon but couldn't find one.
There is no useful log message in DDMS to figure out the starting activity when clicked/tapped on that button.s
Please guide me whether my approach is any good and help me with an answer. Thanks.
you can check with getCurrentViews() and have the list of views displayed before clicking the menu button and after clicking the menu button.By comparing them you can get the view of the new views displayed (i.e. settings button).
After getting the view,you can go with solo.clickOnView(ViewNameObtained);
This will solve your problem for sure.
As far as I know, navigating to settings is not possible with robotium. Even if you would be able to go there you cannot perform any other action as Settings are not port of your application. Android Instrumentation allows performing actions only within one package and robotium is only wrapper for that, so it's not able to click outside your application as well.
You can use UI Automator for that.

Worklight v6.0 Mobile view issue

When i use the Rich Page Editor with an existing project migrated from v5.0.6 workspace, i can't see any view in the "Mobile View" panel. Furthermore, i can't add any new views...
When i click on a list item of my app in the WYSIWYG Panel, i got an error:
An error has occurred. See error log for more details.
com.ibm.etools.rpe.jquery.internal.mobilenavigation.JQueryMobilePanel cannot be cast to com.ibm.etools.rpe.jquery.internal.mobilenavigation.JQueryMobilePage
sometimes and randomly, others of my apps are working well.
What can block the generation of the mobile view generation?
Is your project using JQuery at all? Or it is just Dojo?
Could you give a sample of a page where you see this error?

when start App, than how to remove this Titanium default Page or picture?

I am new Application Developer with the Titanium. i want to develop new Application with Titanium and created a HelloWorld application. Every time my application starts up Than every time Titanium startscreen is show. how I remove this Titanium Startscreen.
I have also 1 question when i run the application in iPhone than show its title bar with windows.
but, in android have not show.
i use build custom with use if else statement i add the title bar. but, any syntax. whose add the tittle bar in android.
I have also occur this type problem than, i sort out this problem with the help of my friend.
I write below step by step.
go to the resource folder where u create ur application.
select the build folder and open iphone and copy the picture whose u want to show on screen.
and rename with default.png
I, think this is useful to you. Let try it.