locked
Unable to Step Into (F11) WinJS code anymore

    Question

  • In my Win8.1 project I can no longer step into base.js and ui.js code from my code. It also happens that if an exception is thrown from within WinJS files I am bumped to the error handler and not to the place where the error occured. Stack trace of course is useless at that moment.

    edit: at least the F11 problem got solved by disabling "Just my Code" in the debugger settings. However, exceptions still not break when they occur.

    Microsoft Visual Studio Ultimate 2013
    Version 12.0.30203.02 Update 1
    Microsoft .NET Framework
    Version 4.5.51641

    Installed Version: Ultimate

    Architecture and Modeling Tools   06181-004-0451047-02543
    Microsoft Architecture and Modeling Tools

    UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

    Team Explorer for Visual Studio 2013   06181-004-0451047-02543
    Microsoft Team Explorer for Visual Studio 2013

    Visual Basic 2013   06181-004-0451047-02543
    Microsoft Visual Basic 2013

    Visual C# 2013   06181-004-0451047-02543
    Microsoft Visual C# 2013

    Visual C++ 2013   06181-004-0451047-02543
    Microsoft Visual C++ 2013

    Visual F# 2013   06181-004-0451047-02543
    Microsoft Visual F# 2013

    Visual Studio 2013 Code Analysis Spell Checker   06181-004-0451047-02543
    Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

    Common Azure Tools   1.0
    Provides common services for use by Azure Mobile Services and Windows Azure Tools.

    Microsoft Web Developer Tools 2013   2.0.40926.0
    Microsoft Web Developer Tools contains the following components:
    Support for creating and opening ASP.NET web projects
    Browser Link: A communication channel between Visual Studio and browsers
    Editor extensions for HTML, CSS, and JavaScript
    Page Inspector: Inspection tool for ASP.NET web projects
    Scaffolding: A framework for building and running code generators
    Server Explorer extensions for Windows Azure Web Sites
    Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

    NuGet Package Manager   2.8.50126.477
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

    PreEmptive Analytics Visualizer   1.2
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

    SQL Server Data Tools   12.0.30919.1
    Microsoft SQL Server Data Tools

    Visual Studio 12 Editor Extension   1.0
    Information about my package

    Windows Azure Mobile Services Tools   1.0
    Windows Azure Mobile Services Tools

     
    • Edited by pkursawe Thursday, March 20, 2014 4:51 PM solved
    Thursday, March 20, 2014 4:31 PM

Answers

  • Now the debugger breaks in WinJS source again. Before it showed "external" in the stack window. I had to right click and enable "Show extern code". Why are all those usefull debugging settings disabled in 2013 now?

    I just hope those settings get synced between my VS instance now!

    • Marked as answer by pkursawe Friday, March 21, 2014 3:11 AM
    Friday, March 21, 2014 3:11 AM

All replies

  • So if I understand correctly, your F11/ Step Into issue has been resolved and the actual issue is that you cannot break on Exceptions? If that's the case, have you tried using the "Debug", "Exceptions" window and checked the "JavaScript runtime exceptions" checkbox?

    Windows Store Developer Solutions, follow us on Twitter: @WSDevSol|| Want more solutions? See our blog

    Thursday, March 20, 2014 10:59 PM
    Moderator
  • Yes, F11 has been solved. That must have changed between 2012 and 2013, cause I could step into WinJS code before without chaning the settings.

    Which column of checkboxs in "JavaScript runtime exceptions" should I check? "Thrown" or "User unhandled"?

    Thursday, March 20, 2014 11:05 PM
  • Which exception is actually being thrown from WinJS? You can try to check the checkbox next to "JavaScript runtime exceptions" which will make VS break on every JavaScript exception - if you expand the JavaScript runtime exceptions, you will see the different types of exceptions being thrown...

    Windows Store Developer Solutions, follow us on Twitter: @WSDevSol|| Want more solutions? See our blog

    Thursday, March 20, 2014 11:13 PM
    Moderator
  • Now the debugger breaks in WinJS source again. Before it showed "external" in the stack window. I had to right click and enable "Show extern code". Why are all those usefull debugging settings disabled in 2013 now?

    I just hope those settings get synced between my VS instance now!

    • Marked as answer by pkursawe Friday, March 21, 2014 3:11 AM
    Friday, March 21, 2014 3:11 AM