Source Maps Don't work in Appbuilder Device Simulator

2 posts, 0 answers
  1. Nicholas
    Nicholas avatar
    2 posts
    Member since:
    Oct 2015

    Posted 18 Nov 2015 Link to this post

    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?
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 23 Nov 2015 Link to this post

    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.

    Tina Stancheva

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

Back to Top