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

Source Maps Don't work in Appbuilder Device Simulator

1 Answer 75 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nicholas
Top achievements
Rank 1
Nicholas asked on 19 Nov 2015, 01:26 AM
I've carefully followed several guides for creating javascript source maps. But when I load my project in to Appbuilder Device Simulator, the source maps are not used. And, yes, I've checked that JS sourcemaps are enabled in the debug options of the Device Simulator. Any ideas how to get source maps working?

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 23 Nov 2015, 02:27 PM
Hello Nicholas,

If you're using the Windows client of AppBuilder or its extension for Visual Studio, I'm afraid you won't be able to load the source code using source mapping. I logged this issue in our internal issue tracker for further investigation.

In the meantime, you can use AppBuilder's In-Browser client where source mapping works as expected. Should you have any issues with it, post them here so I can investigate and advice you further.

I also want to mention that debugging minified code on a mobile device is hard (at best you'll have to serve the mappings on a web server and manually add them through the DevTools context menu). This is why it is recommended that you don't minify your source files until your app is ready for publishing.

Regards,
Tina Stancheva
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Report a bug
Asked by
Nicholas
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or