When going though my code with the debugg, you are able to see the variable and their values etc etc.
However, if an array has 200 odd variables or if an object has 300+ defs for it. It takes ages to find it straight away (once i find the variable i need, i put it under my watch list)
My questions is: How can you list the variable in alphabetical order or in any order at all within the debug variables list?
Debug tool window has an option to sort variables/array keys alphabetically. For that -- activate that option via "cog" icon:
NOTE: you can add that option as separate button on debug toolbar (look for A-Z icon on screenshot above) if you need to turn this option ON or OFF often. This can be done via Settings/Preferences | Appearance & Behaviour | Menus and Toolbars.
Standard in place search works there (in variables panel) as well. For that just start typing while panel has focus.
NOTE that search looks trough already expanded nodes only (just like in other places) -- it will NOT open nodes for you (e.g. if you are trying to find variable/key that is located in closed node then it will not be found).
Related
Anyone know how to ignore the build folder when doing a 'Find in Projects' on NetBeans (v6.9.1).
Currently the Search results pane shows all results from src folders but also those from the build folder so if your project contains a lot of JSP files for example, many results are duplicated...
I think I've figured out how to ignore the build folder of projects when doing a 'Find in Projects' in NetBeans 6.9.1:
Go to Tools->Options-Miscellaneous.
Click the Files tab.
In Files Ignored by the IDE, edit the Ignored Files Pattern
regular expression and include the build folder. For example, on
my system I simply added build thus:
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn|build)$|~$|^\.(?!htaccess$).*$
Click OK to save the options and close the dialog.
(Nerd Note: Took me exactly 1 year to the day to figure this out!)
You may be able to get similar behavior with a multiple node selection search.
From the 'Files' Window (Found in the Window/Files Menu), expand all
of your projects and select all of them with a Ctrl+A (PC) or
Command+A (Mac).
Then with Control(PC) or Command(Mac) key held down, click the
folders that you don't want to search.
Finally, use Ctrl+F(PC) or Command+F(Mac) to open a search, enter the
text you're looking for, and then choose 'Selection ( # nodes)' under
the Scope where the '#' symbol is the number of folders you just selected.
It is a little more manual than applying a filter, but you should be able to better control your results.
I have a Drupal 7 question. What's the best way to display my values for custom fields onto a page?
I know there's the Manage Display, which is great for sorting information, but I'd like to add lots of styling to these values, place them all over the page in different places, and also use some of them multiple times. Sometimes I'd even like to use values inside other values (like adding field1 and field2 and displaying the sum, or making a field clickable to go to a URL designated in another field).
I've looked at things like Display Suite, but that's more for the whole page. I only need to adjust what shows up in the main content area. It also doesn't seem to do what I need to do.
My themes I've used seem to add variables inside the page code (the .tpl files) and display information that way.
What I've been doing is using some of the included variables (like print $date; and print $time;) and have been calling them directly using PHP and the complex array system revealed by devel.
For example, if I want to show body content, I do this:
$myContent .= "Body: ".$content['body']['#items'][0]['value'];
It works, but I have a feeling there's a better way. If so, what? I haven't yet found it, since I'm looking for something which gives me the most control over how I display the variables for each node type.
Thanks!
https://www.drupal.org/node/1375160
https://www.drupal.org/node/1795314
https://www.drupal.org/node/1433006
you have several post related on this...
I am testing my PHP web application using the Ranorex automation tool. Whenever I record my test case, it is recording perfectly but when I play my test case it stops (sometimes it hangs) at the middle and fails my test case.
What is the reason that is creating this issue?
The good way to automate is to write code without using recorder.
There are some reasons of it:
recording unnecessary steps
saving elements to repository by wrong
attribute. As usual there are automation id and regex of text or
caption of element. For dynamically changeable elements this doesn't
fit.
different types of elements requires different types of methods
to wait and validate them.
In this way, I recommend you to watch the screencast of Ranorex Team.
There are 5 videos about everything you should know about UI Mapping.
According to you exceptions and errors in comments:
"...ATagPrintReport3' does not match the specified value (actual='False', expected='True')"
It means that Ranorex recorded element ATagPrintReport3 with value of some bool attribute. Of cource, the value of element will change, so the right way is to identify element with the attribute that will never change (uniqueId, name, class and other).
Failed to find item 'updtaed_cpt_imsRepository.OpeningInventoryStockValueJpg.ButtonOK'. No element found for path '/form[#title~'^Opening\ Inventory\ Stock\ V']/button[#accessiblename='OK']' within 1m.
This error can be the result of very fast dynamically changeable element, the wrong path of element, it could be presented in dom but could not be visible.
The best way to know what's wrong is to use breakpoints and step-to-step debuging.
In my opinion the path for ButtonOK will be better if it looks like:
'/form[#title~'Opening\ Inventory\ Stock']/button[#name='OK']'
No element found for path '/form[#title='Reading Untagged Document']/?/?/button[#text='&Cancel']' within 1m.
It is the same to p.2
In this example, the path will be better:
'/form[#title='Reading Untagged Document']//button[#name='&Cancel']'
I am sure there is a error message in the report.
What does this message say?
I suggest checking if the elements can be recognized uniquely by Ranorex and if the webpage is fully loaded.
You can use the following code snippet in order to wait until the webpage is fully loaded.
WebDocument webDocument = "/dom[#caption='Your Test Page']";
webDocument.WaitForDocumentLoaded();
Concerning your second question, a video how to work with data connector can be found on the Ranorex website directly:
Data-Driven Test Automation with Ranorex
I wanted ST3 to include the "$" when selecting PHP files so I edited word_separators by removing $ as such :
"word_separators": "./\\()\"':,.;<>~!##%^&*|+=[]{}`~?"
And now it highlight the whole varibale including the "$" when double clicking a variable. However, now Sublime is not matching/outlining those variables using the default match_selection functionality.
Any thoughts on this? Is there a setting I am missing. Much appreciated.
Please see my answer to this question for an in-depth look at the effect of changing word_separators and various find and select options. Long story short, altering word_separators changes the behavior of double-clicking, as you noted, but other operations, including match_selection, rely on an internal word separators list that apparently can't be altered by the user. So, when you double-click to select a PHP variable, you'll get the $ selected, but other instances of the variable won't be highlighted. They will be selected when using CtrlD to make multiple selections, however:
Additionally, when using the Find dialog, other instances will be highlighted:
So, to address your original problem, if you need to see all the instances of the currently-selected variable, set "find_selected_text": true in your user preferences, double-click to select your variable of interest, then hit CtrlF (⌘F on OS X) to view all occurrences. Just make sure you don't have the regex search button selected, as $ has a special meaning in regexes.
I have to admit, for a FREE PRODUCT, Eclipse really delivers. However, sometimes I don't understand certain missing features...
Eclipse has over ELEVEN HUNDRED different key bindings.
(source: rigel222.com)
I would like to use one of those KeyBindings to add a "Watch" Expression to the expressions window, while debugging.
(source: rigel222.com)
Here is an additional screenshot showing that I already understand the "filter" process. I have set key-bindings for everything I could find pertaining to "Watch", but as you can see it doesn't show up in my right-click menu, and does not function when I use the defined keyboard shortcut.
(source: rigel222.com)
Despite the prevailing opinion that this is "blatant whining", It is also a legitimate problem for me.
Please help.
The menu item you seek is filtered out by default from the view. There is a filter button near the lower right corner of the window. There you should uncheck the "Filter uncategorized commands" checkbox, and then searching for watch should produce Add to Watch, Add Watch Expression output. I'm not entirely sure these are the ones you need, but it might work.