This is a migrated thread and some comments may be shown as answers.

javascript debug with tabstrip

4 Answers 130 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Wenhao
Top achievements
Rank 1
Wenhao asked on 24 Oct 2012, 06:56 AM
Hello Telerik,

I have now written a html 5 page with KendoUI TabStrip control to involve some other html pages in it. I am now stuck because I was wondering how to debug the inline javascript codes within nested paged. Neither firebug and chrome dev tools could detect the scripts, i mean i could not ever find the scripts file in the debugging tools. How coult i get over it, please help.

4 Answers, 1 is accepted

Sort by
0
kiya
Top achievements
Rank 1
answered on 26 Oct 2012, 07:28 AM
I have encountered this problem too
0
Wenhao
Top achievements
Rank 1
answered on 26 Oct 2012, 07:36 AM
PLEASE! I am really frustrated. Kendo UI is a great set of HTML 5 controls, but this issue made us tough.

Any suggestion?
0
Hennie
Top achievements
Rank 1
answered on 16 Jan 2013, 09:25 AM
Hi there,

I am experiencing a similar issue.

I use Visual Studio 2012 for development and debugging of JavaScript.

When I use the tabstrip control I can't seem to debug by adding a breakpoint in my file like I normally do in Visual Studio. The breakpoint never gets hit. However if I add a "debugger;" statement in my code, then execution will stop at that statement and I am then able to debug.

Any idea why this happens? I feel that adding "debugger;" statements in our code is messy and risky if one of those statements is left over in the code by mistake and somehow makes it's way into the production environment.

This is how I define my tabstrip in my JS:

$("#tabstrip").kendoTabStrip({
    animation: { open: { effects: "fadeIn" } },
    contentUrls: [
       "Page1.html?param1=" + param1,
       "../../Folder/Page2.htm?param2=" + param2
    ]
});

The code that I am trying to debug is in a JS file included in Page1.html.

Regards,
Hennie
0
Iliana Dyankova
Telerik team
answered on 21 Jan 2013, 09:12 AM
Hello guys, 

This is due to file contents being consumed with Ajax and I am afraid there is no way to map to the breakpoint in your question.

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TabStrip
Asked by
Wenhao
Top achievements
Rank 1
Answers by
kiya
Top achievements
Rank 1
Wenhao
Top achievements
Rank 1
Hennie
Top achievements
Rank 1
Iliana Dyankova
Telerik team
Share this question
or