Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Debugging Javascript With VS2005?

Debugging Javascript With VS2005?

Scheduled Pinned Locked Moved The Lounge
javascriptquestion
14 Posts 11 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R realJSOP

    I've seen people alluding to the fact that VS2005 can be used to ddebug javascript in IE. Has anyone here done that? I'm working on a "classic" ASP website, and they took FireFox away from me, so I need to find another way (using "approved software") to perform this task.

    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
    -----
    "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

    P Offline
    P Offline
    Paddy Boyd
    wrote on last edited by
    #4

    Attach to the iexplore.exe process. Debugger has always been good enough for my needs.

    1 Reply Last reply
    0
    • R realJSOP

      I've seen people alluding to the fact that VS2005 can be used to ddebug javascript in IE. Has anyone here done that? I'm working on a "classic" ASP website, and they took FireFox away from me, so I need to find another way (using "approved software") to perform this task.

      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

      A Offline
      A Offline
      Anna Jayne Metcalfe
      wrote on last edited by
      #5

      Apparently, yes[^]. I believe this area is one that is being focused on for VS2008 ("Visual Studio Orcas") as well: Javascript Debugging In Visual Web Developer "Orcas"[^]

      Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

      R 1 Reply Last reply
      0
      • A Anna Jayne Metcalfe

        Apparently, yes[^]. I believe this area is one that is being focused on for VS2008 ("Visual Studio Orcas") as well: Javascript Debugging In Visual Web Developer "Orcas"[^]

        Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

        R Offline
        R Offline
        realJSOP
        wrote on last edited by
        #6

        Unless VWD is already installed, I can't use it. If it can't be done with VS2005, I'm hosed.

        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

        A 1 Reply Last reply
        0
        • R realJSOP

          I've seen people alluding to the fact that VS2005 can be used to ddebug javascript in IE. Has anyone here done that? I'm working on a "classic" ASP website, and they took FireFox away from me, so I need to find another way (using "approved software") to perform this task.

          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #7

          As Anna said, you should be able to attach to IE and debug that way. Make sure 'Disable Script Debugging' is unchecked in the IE options. This[^] may be of some help as well. Cheers, Drew.

          1 Reply Last reply
          0
          • R realJSOP

            I've seen people alluding to the fact that VS2005 can be used to ddebug javascript in IE. Has anyone here done that? I'm working on a "classic" ASP website, and they took FireFox away from me, so I need to find another way (using "approved software") to perform this task.

            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
            -----
            "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

            M Offline
            M Offline
            Matias Szulman
            wrote on last edited by
            #8

            I do it all the time, but it has it shares of issues. If you embed javascript in your html/aspx file, then you have to attach the ie process and select script to debug it, and you must set all breakpoints manually - that is by clicking debug -> new breakpoint, and setting the file and line number manually. If the script is ina .js file referenced by the page, then you can set up a breakpoint the same way you do it in code - F9 or clicking on the left side of the code. When debugging, the same things that you use for code work for js - QuickWatch, pointing a variable and seeing it's value, step-forward, etc.

            1 Reply Last reply
            0
            • R realJSOP

              I've seen people alluding to the fact that VS2005 can be used to ddebug javascript in IE. Has anyone here done that? I'm working on a "classic" ASP website, and they took FireFox away from me, so I need to find another way (using "approved software") to perform this task.

              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
              -----
              "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

              L Offline
              L Offline
              leppie
              wrote on last edited by
              #9

              1. Enable Javascript debugging in IE, via IE options (somewhere deep down) 2. Set a 'breakpoint' by inserting something illegal like 'null = c;' 3. Run page, attach when error occurs. 4. Drag yellow pointer over illegal line of code :)

              **

              xacc.ide-0.2.0.75 - now with C# 3.5 support and Navigation Bar!

              **

              T 1 Reply Last reply
              0
              • L leppie

                1. Enable Javascript debugging in IE, via IE options (somewhere deep down) 2. Set a 'breakpoint' by inserting something illegal like 'null = c;' 3. Run page, attach when error occurs. 4. Drag yellow pointer over illegal line of code :)

                **

                xacc.ide-0.2.0.75 - now with C# 3.5 support and Navigation Bar!

                **

                T Offline
                T Offline
                TClarke
                wrote on last edited by
                #10

                If you can modify the JavaScript then just put

                debugger;

                It works like a break point (as long as you've set debugging to on in the advanced IE options)

                Philosophy: The art of never getting beyond the concept of life.

                L 1 Reply Last reply
                0
                • T TClarke

                  If you can modify the JavaScript then just put

                  debugger;

                  It works like a break point (as long as you've set debugging to on in the advanced IE options)

                  Philosophy: The art of never getting beyond the concept of life.

                  L Offline
                  L Offline
                  leppie
                  wrote on last edited by
                  #11

                  sweet, thanks :)

                  **

                  xacc.ide-0.2.0.75 - now with C# 3.5 support and Navigation Bar!

                  **

                  1 Reply Last reply
                  0
                  • R realJSOP

                    I've seen people alluding to the fact that VS2005 can be used to ddebug javascript in IE. Has anyone here done that? I'm working on a "classic" ASP website, and they took FireFox away from me, so I need to find another way (using "approved software") to perform this task.

                    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                    -----
                    "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                    G Offline
                    G Offline
                    GaryWoodfine
                    wrote on last edited by
                    #12

                    YEah I've used VS2005 to debug Javascript, it's kinda cool. There is an article somewhere on MSDN explaining how to set it up

                    Kind Regards, Gary


                    My Website || My Blog || My Articles

                    1 Reply Last reply
                    0
                    • R realJSOP

                      I've seen people alluding to the fact that VS2005 can be used to ddebug javascript in IE. Has anyone here done that? I'm working on a "classic" ASP website, and they took FireFox away from me, so I need to find another way (using "approved software") to perform this task.

                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                      -----
                      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                      O Offline
                      O Offline
                      Orcrist
                      wrote on last edited by
                      #13

                      Before youcan debug in IE you need to go to: Tools-->Options-->Advanced Tab and uncheck the option for Disable Javascript Debugging (internet explorer). Once you do that you can set breakpoints in the javascript file or you can insert the keyword debugger; in the javescript routine and it will break to the debugger at that point. If you need to debug in FireFox you can download the addin FireBug. It has some pretty cool features for drilling into objects but it has some pretty nasty bugs that crash FF altogether. Nevertheless it is still quite usefull at times. Hope this helps. David

                      1 Reply Last reply
                      0
                      • R realJSOP

                        Unless VWD is already installed, I can't use it. If it can't be done with VS2005, I'm hosed.

                        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                        -----
                        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                        A Offline
                        A Offline
                        Anna Jayne Metcalfe
                        wrote on last edited by
                        #14

                        VWD is just a subset of VS2005, so you should be able to do it just as well in VS2005 Standard, Pro or Team Editions.

                        Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups