Setting JavaScript breakpoints in embedded .JS files

Last post 03-08-2008 5:04 AM by miket101. 2 replies.

Sort Posts:

  • Setting JavaScript breakpoints in embedded .JS files

    03-06-2008, 4:44 AM
    • Loading...
    • miket101
    • Joined on 03-06-2008, 4:39 AM
    • Posts 2

    Hi

     I don't seem to be able to set a breakpoint in a .JS file that is included as a web resource, the breakpoint never gets enabled when the application runs.  I'm guessing that this may be normal and that I should somehow include the pure JS file for development purposes, but this is frustrating as the file is actually associated with a web server control (in a separate assembly) and I'd rather track it there for source code control and team reasons.  Can anyone advise me what the best practice is here?

     Thanks

     Mike

  • Re: Setting JavaScript breakpoints in embedded .JS files

    03-07-2008, 11:25 PM
    • Loading...
    • Jeff.aspx
    • Joined on 09-12-2003, 2:16 AM
    • Redmond, WA
    • Posts 245
    • AspNetTeam
      Moderator
    Hi Mike,
     
    You're correct.  Visual Studio 2008 current does not support JS debugging for scripts inside the assembly.  The best thing to do would be to use a separate design-time JS as you mentioned.
     
    Thanks!
    Jeff King
    Program Manager
    ASP.net
  • Re: Setting JavaScript breakpoints in embedded .JS files

    03-08-2008, 5:04 AM
    • Loading...
    • miket101
    • Joined on 03-06-2008, 4:39 AM
    • Posts 2

    I have just realized that I can use the "debugger;" JavaScript statement to stop my script as it loads and set my break points there...

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter