Finding where a variable or object was declared NetbeansWhy Netbeans 6.8 remote project (php) uploads all...

Risk of infection at the gym?

How can we prove that any integral in the set of non-elementary integrals cannot be expressed in the form of elementary functions?

Method to test if a number is a perfect power?

Proof of work - lottery approach

Do the temporary hit points from the Battlerager barbarian's Reckless Abandon stack if I make multiple attacks on my turn?

Is there a problem with hiding "forgot password" until it's needed?

How to run a prison with the smallest amount of guards?

Is there a korbon needed for conversion?

Large drywall patch supports

Is the destination of a commercial flight important for the pilot?

Crossing the line between justified force and brutality

You cannot touch me, but I can touch you, who am I?

How to Reset Passwords on Multiple Websites Easily?

System.debug(JSON.Serialize(o)) Not longer shows full string

Avoiding estate tax by giving multiple gifts

Term for the "extreme-extension" version of a straw man fallacy?

How do we know the LHC results are robust?

What does the word "Atten" mean?

What is the opposite of 'gravitas'?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

Why not increase contact surface when reentering the atmosphere?

Failed to fetch jessie backports repository

How do scammers retract money, while you can’t?



Finding where a variable or object was declared Netbeans


Why Netbeans 6.8 remote project (php) uploads all files by defaultHow can I get around UAC in Windows 7 / Vista to run tests using Selenium under NetBeans?Any way to change dark Netbeans IDE theme?Netbeans Auto-compeletion on php class's methodDiff to HEAD with PHP Storm?Improve Netbeans' javascript documentation/code completionRename refactoring for PHP in Visual Studio CodeNetbeans: cannot upload files because it prompts for Selenium folderApache NetBeans Platform Modular Customizationeclipse installation and netbeans plugin update problems













1















In Netbeans PHP if you control + mouse1 click on an object or variable it will go to the initial declaration, if it's in the same script.



But is there any way to make it go to the initial declaration if it was made inside a previously included script?










share|improve this question
















bumped to the homepage by Community 17 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    1















    In Netbeans PHP if you control + mouse1 click on an object or variable it will go to the initial declaration, if it's in the same script.



    But is there any way to make it go to the initial declaration if it was made inside a previously included script?










    share|improve this question
















    bumped to the homepage by Community 17 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      In Netbeans PHP if you control + mouse1 click on an object or variable it will go to the initial declaration, if it's in the same script.



      But is there any way to make it go to the initial declaration if it was made inside a previously included script?










      share|improve this question
















      In Netbeans PHP if you control + mouse1 click on an object or variable it will go to the initial declaration, if it's in the same script.



      But is there any way to make it go to the initial declaration if it was made inside a previously included script?







      php netbeans






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 12 '14 at 13:22









      Der Hochstapler

      68.3k50230286




      68.3k50230286










      asked Jan 17 '12 at 17:53









      SpoonfaceSpoonface

      1286




      1286





      bumped to the homepage by Community 17 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 17 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          There may be a better way to do this, but this is my work around:





          1. Select or highlight the variable.


          2. Right click > Refactor > Rename...

          3. Change the name.


          4. Click the Preview button


          Netbeans will then list all the occurrences of the variable within your project. From this list, you should be able to find where you initialized it.



          Be sure to click the Cancel button, if you do not mean to rename the variable.



          For the same results without refactoring, you can also use Edit > Find Usages.






          share|improve this answer


























          • hi thanks for your reply. Your method is a bit like the 'find usages' option, and would probably work in most instances but I have an enormous framework here with a number of global variables being used hundreds of times across numerous scripts, and working out where each had been instantiated is proving to be problematic.

            – Spoonface
            Jan 17 '12 at 18:29













          • Ah. The Edit > Find Usages option is much simpler than what I suggested, although the result is effectively the same.

            – iglvzx
            Jan 17 '12 at 18:32











          • hmm looks like it's not possible, so I might consider changing IDE's as this is a pretty big issue for me at the moment

            – Spoonface
            Jan 19 '12 at 11:35











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f379495%2ffinding-where-a-variable-or-object-was-declared-netbeans%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          There may be a better way to do this, but this is my work around:





          1. Select or highlight the variable.


          2. Right click > Refactor > Rename...

          3. Change the name.


          4. Click the Preview button


          Netbeans will then list all the occurrences of the variable within your project. From this list, you should be able to find where you initialized it.



          Be sure to click the Cancel button, if you do not mean to rename the variable.



          For the same results without refactoring, you can also use Edit > Find Usages.






          share|improve this answer


























          • hi thanks for your reply. Your method is a bit like the 'find usages' option, and would probably work in most instances but I have an enormous framework here with a number of global variables being used hundreds of times across numerous scripts, and working out where each had been instantiated is proving to be problematic.

            – Spoonface
            Jan 17 '12 at 18:29













          • Ah. The Edit > Find Usages option is much simpler than what I suggested, although the result is effectively the same.

            – iglvzx
            Jan 17 '12 at 18:32











          • hmm looks like it's not possible, so I might consider changing IDE's as this is a pretty big issue for me at the moment

            – Spoonface
            Jan 19 '12 at 11:35
















          0














          There may be a better way to do this, but this is my work around:





          1. Select or highlight the variable.


          2. Right click > Refactor > Rename...

          3. Change the name.


          4. Click the Preview button


          Netbeans will then list all the occurrences of the variable within your project. From this list, you should be able to find where you initialized it.



          Be sure to click the Cancel button, if you do not mean to rename the variable.



          For the same results without refactoring, you can also use Edit > Find Usages.






          share|improve this answer


























          • hi thanks for your reply. Your method is a bit like the 'find usages' option, and would probably work in most instances but I have an enormous framework here with a number of global variables being used hundreds of times across numerous scripts, and working out where each had been instantiated is proving to be problematic.

            – Spoonface
            Jan 17 '12 at 18:29













          • Ah. The Edit > Find Usages option is much simpler than what I suggested, although the result is effectively the same.

            – iglvzx
            Jan 17 '12 at 18:32











          • hmm looks like it's not possible, so I might consider changing IDE's as this is a pretty big issue for me at the moment

            – Spoonface
            Jan 19 '12 at 11:35














          0












          0








          0







          There may be a better way to do this, but this is my work around:





          1. Select or highlight the variable.


          2. Right click > Refactor > Rename...

          3. Change the name.


          4. Click the Preview button


          Netbeans will then list all the occurrences of the variable within your project. From this list, you should be able to find where you initialized it.



          Be sure to click the Cancel button, if you do not mean to rename the variable.



          For the same results without refactoring, you can also use Edit > Find Usages.






          share|improve this answer















          There may be a better way to do this, but this is my work around:





          1. Select or highlight the variable.


          2. Right click > Refactor > Rename...

          3. Change the name.


          4. Click the Preview button


          Netbeans will then list all the occurrences of the variable within your project. From this list, you should be able to find where you initialized it.



          Be sure to click the Cancel button, if you do not mean to rename the variable.



          For the same results without refactoring, you can also use Edit > Find Usages.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 17 '12 at 18:33

























          answered Jan 17 '12 at 18:13









          iglvzxiglvzx

          19.6k1167112




          19.6k1167112













          • hi thanks for your reply. Your method is a bit like the 'find usages' option, and would probably work in most instances but I have an enormous framework here with a number of global variables being used hundreds of times across numerous scripts, and working out where each had been instantiated is proving to be problematic.

            – Spoonface
            Jan 17 '12 at 18:29













          • Ah. The Edit > Find Usages option is much simpler than what I suggested, although the result is effectively the same.

            – iglvzx
            Jan 17 '12 at 18:32











          • hmm looks like it's not possible, so I might consider changing IDE's as this is a pretty big issue for me at the moment

            – Spoonface
            Jan 19 '12 at 11:35



















          • hi thanks for your reply. Your method is a bit like the 'find usages' option, and would probably work in most instances but I have an enormous framework here with a number of global variables being used hundreds of times across numerous scripts, and working out where each had been instantiated is proving to be problematic.

            – Spoonface
            Jan 17 '12 at 18:29













          • Ah. The Edit > Find Usages option is much simpler than what I suggested, although the result is effectively the same.

            – iglvzx
            Jan 17 '12 at 18:32











          • hmm looks like it's not possible, so I might consider changing IDE's as this is a pretty big issue for me at the moment

            – Spoonface
            Jan 19 '12 at 11:35

















          hi thanks for your reply. Your method is a bit like the 'find usages' option, and would probably work in most instances but I have an enormous framework here with a number of global variables being used hundreds of times across numerous scripts, and working out where each had been instantiated is proving to be problematic.

          – Spoonface
          Jan 17 '12 at 18:29







          hi thanks for your reply. Your method is a bit like the 'find usages' option, and would probably work in most instances but I have an enormous framework here with a number of global variables being used hundreds of times across numerous scripts, and working out where each had been instantiated is proving to be problematic.

          – Spoonface
          Jan 17 '12 at 18:29















          Ah. The Edit > Find Usages option is much simpler than what I suggested, although the result is effectively the same.

          – iglvzx
          Jan 17 '12 at 18:32





          Ah. The Edit > Find Usages option is much simpler than what I suggested, although the result is effectively the same.

          – iglvzx
          Jan 17 '12 at 18:32













          hmm looks like it's not possible, so I might consider changing IDE's as this is a pretty big issue for me at the moment

          – Spoonface
          Jan 19 '12 at 11:35





          hmm looks like it's not possible, so I might consider changing IDE's as this is a pretty big issue for me at the moment

          – Spoonface
          Jan 19 '12 at 11:35


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f379495%2ffinding-where-a-variable-or-object-was-declared-netbeans%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...