Software Archive
Read-only legacy content
17061 Discussions

webkit inspector not stopping at breakpoints

Sarma_K_
Beginner
801 Views

My issue is fairly urgent ! I have looked all over the internet for a single thread on this topic and found none !!!

As the title says, in version 277 (maybe prior since this is the first version I try Intel XDK), the webkit inspector does not stop on breakpoints, ever !!! In fact, the UI seems to have quite a lot of difficulty to deal with just setting up a break points. Several odd behaviours are noticed:

in the inspector, in the 'sources' tab, open a js file, than click on the left margin (on line numbers) and you will notice : 1) that it will not show the breakpoint. 2) therefore you start clicking several times, and you notice that a break point is found in the breakpoint list ( found on the right column of the inspector) for every click I made.

Important notes:

I'm very used to using the webkit inspector in Chrome, so I know that stopping on breakpoints works in other contexts or environments.

In this sense, I've tried to go ahead and prove this to myself, so I've tried this functionnality in Node Webkit (since the XDK IDE is based on it), and I was surprise to observe that indeed this worked there as well.

This is why I said to myslef: it must be because I'm running the XDK on Windows 8.1. So I installed the SDK on my Mac at home. Same issue. So I tried Windows 7: same issue again.

The question is, how come the debugger doesn't work in the XDK ?

Has it worked in the past ? How come no-one in the world seems to complain about this bug?

0 Kudos
5 Replies
PaulF_IntelCorp
Employee
801 Views

I'm assuming you are referring to the CDT window in the Emulate tab? If that is the case, there are some situations where breakpoints do not get honored, in which case, adding a "debugger ;" line into your source code should do the trick.

If you are referring to using the WEINRE debug console with App Preview, that does not support JavaScript debugging.

Otherwise, if you are referring to using the Debug tab, with CDT, that works very reliably.

Please see this doc page for a rundown of the available debug options > https://software.intel.com/en-us/xdk/docs/intel-xdk-debug-and-test-overview

0 Kudos
Sarma_K_
Beginner
801 Views

Hi,

I'm trying to use emulate tab for debugging. When I hit the debug icon the CDT opens up and when I 

Set breakpoints and hit the reload button they never get hit.  Even if I set the debugger statement it never stops.

But when I place an alert statement it gets displayed properly. Is there anything wrong I'm doing or is there a bug.

By the way I using ionic framework.

0 Kudos
PaulF_IntelCorp
Employee
801 Views

I just spoke with a colleague and she had run into this problem herself. The solution was to do a complete uninstall of the XDK and then reinstall. Follow these instructions on how to do that > https://software.intel.com/en-us/xdk/faqs/general#uninstall-xdk

0 Kudos
Sarma_K_
Beginner
801 Views

Hi,

Followed the mentioned steps but with no luck.

No matter what the debugger never stops at the breakpoint in Emulate Tab on CDT.

Is it because I'm using MAC ?

Could you please suggest what my next best option could be. I desperately need this feature so that my development would go ahead.

I just cannot abandon Intel XDK for this reason alone.

Thanks

 

0 Kudos
PaulF_IntelCorp
Employee
801 Views

I am using a Mac and am not having this problem, not sure what to suggest other than to use the Debug tab, which provides a much more accurate environment than the Emulate tab. If you update one of your files in the Develop tab while using the Debug tab, when you switch back to the Debug tab it will offer to update your app under debug with the new file(s).

0 Kudos
Reply