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. Web Development
  3. JavaScript
  4. Tracking down functions in javascript.

Tracking down functions in javascript.

Scheduled Pinned Locked Moved JavaScript
javascripttoolsquestion
7 Posts 7 Posters 5 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 Offline
    R Offline
    R tsumami
    wrote on last edited by
    #1

    Okay, I just got a somewhat of a horrifying script. It has about 60 functions in it and the creator decided that for every function he should use another function to call it, function names are none descriptive (func123), I already found 3 functions that call the exact same function and doesn’t do anything else. I have been asked to document it and tidy it up, but right now I can’t tell right from left. What I want to ask is: Does anyone know of an editor for javascript that can tell me where what function is called and where what variable is used?

    N P H 3 Replies Last reply
    0
    • R R tsumami

      Okay, I just got a somewhat of a horrifying script. It has about 60 functions in it and the creator decided that for every function he should use another function to call it, function names are none descriptive (func123), I already found 3 functions that call the exact same function and doesn’t do anything else. I have been asked to document it and tidy it up, but right now I can’t tell right from left. What I want to ask is: Does anyone know of an editor for javascript that can tell me where what function is called and where what variable is used?

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #2

      Use a decent editor that will allow you to easily find the functions. We use a lot of TCL in house and have found notepad++ invaluable for searching and editing the code.


      Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre

      1 Reply Last reply
      0
      • R R tsumami

        Okay, I just got a somewhat of a horrifying script. It has about 60 functions in it and the creator decided that for every function he should use another function to call it, function names are none descriptive (func123), I already found 3 functions that call the exact same function and doesn’t do anything else. I have been asked to document it and tidy it up, but right now I can’t tell right from left. What I want to ask is: Does anyone know of an editor for javascript that can tell me where what function is called and where what variable is used?

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        +1 for Notepad++.

        I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

        Forgive your enemies - it messes with their heads

        My blog | My articles | MoXAML PowerToys | Onyx

        F 1 Reply Last reply
        0
        • P Pete OHanlon

          +1 for Notepad++.

          I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

          Forgive your enemies - it messes with their heads

          My blog | My articles | MoXAML PowerToys | Onyx

          F Offline
          F Offline
          fjdiewornncalwe
          wrote on last edited by
          #4

          +10 for Notepad++. I even use it to browse individual code files (C++, C#, VB, VBS, XML...) when I don't want to load studio and wait for it to initialize.

          I wasn't, now I am, then I won't be anymore.

          T Z 2 Replies Last reply
          0
          • F fjdiewornncalwe

            +10 for Notepad++. I even use it to browse individual code files (C++, C#, VB, VBS, XML...) when I don't want to load studio and wait for it to initialize.

            I wasn't, now I am, then I won't be anymore.

            T Offline
            T Offline
            thatraja
            wrote on last edited by
            #5

            I agree :thumbsup:

            thatraja |Chennai|India|


            Brainbench certifications
            Down-votes are like kid's kisses don't reject it :-)
            Do what you want quickly because the Doomsday on 2012 :-)

            1 Reply Last reply
            0
            • F fjdiewornncalwe

              +10 for Notepad++. I even use it to browse individual code files (C++, C#, VB, VBS, XML...) when I don't want to load studio and wait for it to initialize.

              I wasn't, now I am, then I won't be anymore.

              Z Offline
              Z Offline
              Zhenjie Fu
              wrote on last edited by
              #6

              The tool: Eclipse will help you after you install JavaScript model.

              1 Reply Last reply
              0
              • R R tsumami

                Okay, I just got a somewhat of a horrifying script. It has about 60 functions in it and the creator decided that for every function he should use another function to call it, function names are none descriptive (func123), I already found 3 functions that call the exact same function and doesn’t do anything else. I have been asked to document it and tidy it up, but right now I can’t tell right from left. What I want to ask is: Does anyone know of an editor for javascript that can tell me where what function is called and where what variable is used?

                H Offline
                H Offline
                Hiren solanki
                wrote on last edited by
                #7

                THIS[^] tool might be useful, I've used it and it's quite helpful.

                Regards, Hiren. "We owe a lot to the Indians, who taught us how to count, without which no worthwhile scientific discovery could have been made." - Einstein Microsoft Dynamics CRM

                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