Teamcity: Update env variable from pop up - variables

I am trying to update an environmental variable in team city through a build's plan pop up (when you press run it pops up a window to set some var).
So far i the given value remain only for the specific build and then it discards.
Does anyone has any idea?
thank you

Yes, that is the intended functionality: when using that popup, you are only modifying the parameter for that one run. For a permanent change, you need to open the project settings instead and go to the Parameters page.

Related

Set define off permanent

When running queries in SQL Developer and using the character & in my literals, a popup appears asking me to provide a variable. I then execute SET DEFINE OFF; and I can run my query for the rest of the session.
Is there any way to configure Oracle so it can never ask for manual variables when containing the & character?
Create a text file on your PC which contains set define off and any other set-up instructions you might want.
Then in SQL developer, go to the Tools menu and pick the Preferences... option. In the panel on the left click on Database.
Then either type the path to the file you created, or click Browse and navigate to the file in the 'Select connection startup script' dialog that appears.
That script will then be run every time you connect to any database.
Put SET DEFINE OFF into
login.sql (so that it works for you only, i.e. use user profile file), or
glogin.sql (so that its affect is global, i.e. use site profile file)

How to add MAPBOX_API to path(windows)

someone told me add
MAPBOX_API_KEY = "(my api key)"
this to my path(environment variable) (windows 10) to solve my problem
but don't know how to do that
am i should use setx command?
Could you please detail why you would do that?
In any case, this is how you can edit your environment variables (including the PATH variable):
In Search, search for and then select: System (Control Panel)
Click the Advanced system settings link.
Click Environment Variables. In the section System Variables find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.

Is there any way to save breakpoints in IntelliJ and restore later?

Can I define a set of breakpoints, and save this definition in IntelliJ and restore later on?
Like I have breakpoints at line 40 and 50 for Class A. Can I save them, and later restore in any way?
You can find all breakpoints in project-dir/.idea/workspace.xml -> <component name="DebuggerManager">. You can save their manually.
You cannot save/restore breakpoints in IntelliJ, but if you want to work with different "groups" of breakpoints in different situations without having to enable/disable or delete them one by one, you can do that in the current version (IDEA 2016.3.1).
You can create named groups of breakpoints and enable/disable them as a group with a single click.
https://www.jetbrains.com/help/idea/2016.3/working-with-groups-of-breakpoints.html
This feature is currently not available (not even in Intellij Cardea EAP).
However, there is an IDEA feature request up for this: http://youtrack.jetbrains.com/issue/IDEA-15540.
Want to up-vote the feature request ?
On Android studio you can select multiple break points -> Right click -> Move to group -> new breakpoint group.
After this you can enable/disable entire group just like importing previously saved breakpoints.
In ver14 component name is XDebuggerManager.
You must be careful about the breakpoint url, especially the path must have variable $PROJECT_DIR$.
Since year 2021 you can do it by IDEA plugin Breakpoint Manager.

NetBeans debugging variable values

I am debugging in NetBeans IDE, where can I see assigned variables and their values?
While you're in the debugger go Window -> Debugger -> Variables
You can also use ALT+SHIFT+1 to bring up variable viewer.
Generally, the pane underneath the code has some tabs - and one of them will say 'Variables'. Click on that tab and you will see variables and their values. You need to be actually running a debug session before the variables tab is available.
For this to show all local variables you need to have the line:
xdebug.show_local_vars=1
in your xdebug.ini file. Don't forget to restart Apache if you add that line.
If you are not seeing all local variables then you may have hit the problem where your version of the module file (xdebug.so) has a bug. This is the case currently for Ubuntu 10.04.
To fix this you need to compile a newer version of the xdebug.so file. Follow the instructions at http://xdebug.org/wizard.php to get your new file which should replace your current xdebug.so file.
There exists another solution that is
Press Ctrl+F9 to display Evaluate Expression Panel/Tab
Enter variable name in Evaluate Expression Panel/Tab
Press Ctrl+Enter (or arrow icon at right of Evaluate Expression Panel/Tab
The variable's value is then displayed in Variables Panel just below (on my PC) Evaluate Expression Panel/Tab.
You can also use this solution to display EXPRESSION and not only VARIABLE !
Example: (String sSheetData is a String variable that contains a very big string)
sSheetData.substring(4000,4200);
StringTools.Right(sSheetData,100);
StringTools.Mid(sSheetData,4000,200);
This is also possible using New Watch callable using contextual menu.
But this is not as easy as using Immediate Windows on Microsoft Visual Studio :-)

Watching variables in SSIS during debug

I have a project in SSIS and I've added an Execute SQL Task which sends its result out to a variable. I wanted to confirm the value because I was worried that it would try to write it out as a resultset object rather than an actual integer (in this case I'm returning a COUNT).
My first thought was just to run it in debug mode and add the global variable to my Watch window. Unfortunately, when I right-click on the Watch window, the option to "Add Variable" is greyed out. What am I missing here?
I've gotten around confirming that my variable is set correctly, so I'm not interested in methods like putting a script in to do a MsgBox with the value or anything like that. For future reference I'd like to be able to watch variables in debug mode. If there are some kind of constraints on that then I'd like to know the what and why of it all if anyone knows.
The help is woefully inadequate on this one and every "tutorial" that I can find just says, "Add the variable to the Watch window and debug" as though there should never be a problem doing that.
Thanks for any insight!
I believe you can only add variables to the Watch window while the debugger is stopped on a breakpoint. If you set a breakpoint on a step, you should be able to enter variables into the Watch window when the breakpoint is hit. You can select the first empty row in the Watch window and enter the variable name (you may or may not get some Intellisense there, I can't remember how well that works.)
Drag the variable from Variables pane to Watch pane and voila!
I know this is very old and possibly talking about an older version of Visual studio and so this might not have been an option before but anyway, my way would be when at a breakpoint use the locals window to see all current variable values ( Debug >> Windows >> Locals )
Visual Studio 2013: Yes to both adding to the watch windows during debugging and dragging variables or typing them in without "user::". But before any of that would work I also needed to go to Tools > Options, then Debugging > General and had to scroll right down to the bottom of the right hand pane to be able to tick "Use Managed Compatibility Mode". Then I had to stop and restart debugging. Finally the above advice worked. Many thanks to the above and to this article: Visual Studio 2015 Debugging: Can't expand local variables?