-
12 Apr 2012 7:01 AM #1
how to debug (breakpoint) Sencha Touch 2 apps when developing on Sencha Designer?
how to debug (breakpoint) Sencha Touch 2 apps when developing on Sencha Designer?
Hi there!
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" 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!
-
12 Apr 2012 11:14 AM #2
You can turn off disableCaching by doing the following.
Select the Application node in the inspector.
Search for Loader
Add a Loader config
Select the Loader node
Search for disable
Uncheck disableCaching
This will allow you to step through in debug across refreshes with caching turned on.
If you have a specific spot in the code you want to debug, you can also place a "debugger;" statement by putting that on a single line where you want to set the breakpoint.Aaron Conran
@aconran
Sencha Architect Development Team
-
12 Apr 2012 2:11 PM #3
-
12 Apr 2012 2:32 PM #4
Appending ?breakpoint is another way of turning off caching for debugging purposes.
Aaron Conran
@aconran
Sencha Architect Development Team


Reply With Quote