Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebStorm debug mode doesn't hit breakpoints

I have WebStorm successfully launching my app when I hit debug. It runs the app in chrome and Chrome tells me that that tab is in debug mode.

But it will not break on any breakpoint. I am using Ext JS and in the root app.js I have a breakpoint on the launch: function (which is being called) and that does not drop me into the debugger.

Does the WebStorm debugger not work with Ext JS?

like image 351
David Thielen Avatar asked Jun 17 '13 18:06

David Thielen


1 Answers

I have the same situation as yours, except that I'm building my app using Backbone.js and RequireJs and the app is running on localhost. My app can run in debug mode in Chrome but the breakpoints cannot be hit.

I solve the problem by mapping the Remote URL and my local directory. You can define this in your JavaScript debug configuration profile in the Run->Edit Configurations.

You can refer to this wonderful tutorial: Debugging your JavaScript app using WebStorm.

Happy debugging!

like image 97
Loutlook Avatar answered Sep 29 '22 10:09

Loutlook