How do I setup a QNX project to generate debug executable? - qnx

I imported an existing code base, which was setup for QNX into QNX Momentics. Using v6.5 of the OS with Service Pack 1.
Everything out there in the tutorials about debugging say to turn on a Variant, but my project settings doesn't have a section for Variants.
Where would I create the flag to generate the debug runtime?

In QNX Momentics you need to right click on the project (from the Project Explorer window) and select "Properties". In the list on the left side of the properties window choose the "QNX C/C++ Project" item. The right side of the properties window will show a multi-tabbed set of properties. The second tab is "Build Variants". Select it. Make sure you have both the release and debug variant ticked for your target hardware, you might need to expand the target type.
For example, "X86 (Little Endian)" has two child items for "debug" and "release".
The other thing you might need to make sure of is that when you create your "Debug Configuration" to execute the application with the debugger is that you use the debug variant as the application to launch - it should have a "_g" suffix.

Related

make Xcode (xcodeproj) settings from command line/shell?

i would want to control (some of) the settings of an Xcode project from the command line interface (shell).
are there any tools available for such a use case?
is it possible at all?
or does my request even not make sense at all ? :)
background: for some automation purposes within ContinuousIntegration i'd like to tweak some settings of the project at build time. for this i don't want to have to open the Xcode for making these by some "clickety-click" ... which would hinder the build automation anyway

Project information not showing [Delphi 7]

The Project > Information option can be quite useful when generating some stats for management, but I note that in some projects the option is greyed out (see images, 1st success, 2nd option not available).
What are the rules for the option being available or not? The help doesn't discuss this, only showing what the items mean when the information is displayed.
You can see Information only for Delphi Project (*.dpr) after build (to specify the full path to the project folder, not relative). When you open Delphi package (*.dpk) or Project Group (*.bpg) then the menuitem "Information for ..." will be disable.

How can I run multiple projects in VS 2012 at the same time?

Is it possible for me to run multiple (2) projects at the same time?
I realize that you only have the option of making a single project the 'startup project'.
But I have 2 web projects in my solution, and I need to run both at the same time.
Is the only option opening multiple instances of VS?
Right-Click on your solution (Top-Most node in your Solution
Explorer)
Click on "Properties"
On the right panel, expand
"Common properties", and click on "Startup Project"
Click on "Multiple Startup Projects"
In the "Action" column, select "Start" on the project you want to start
Optionally, you can change the startup order by clicking on a project and moving it with the arrows on the right.
What I do is open another instance of VS and have each project open in the separate VS windows. Then I run both of them.
This saves the hassle of having to deal with changing the settings around.

How to set default compiler options for XE2?

I am unable to figure out how to change default build/compile settings. The little default checkbox in the lower left of the project options dialog is gone. The documentation states:
The Default checkbox that appeared at the lower edge of many Project Options pages has been removed from the product. If you want to specify options as the default for multiple projects, the suggested alternative is to use option sets instead.
I'm going round and round about "Options Sets", "Configuration Manager" etc.. Is this even possible? What does "specifying options as the default for multiple projects" mean? If I have multiple projects then that means those projects and their options exists, how can I set a default value to something already set? What about new projects?
That feature really has gone and there is nothing like it any more in the product, to the very best of my knowledge. I think the best you can do is as follows:
Create a new project.
Change the project settings to whatever you want them to be.
Change anything else in the default project that you don't like, for example { Private declarations }.
Add this project to the repository.
use File | New | Customize to move this project template onto the File | New menu for easy access.
Project->Options->Target. You can set up a base configuration, and then provide different options that differ from the base for Debug and Release. You can also create custom option sets, which means that they're different from the standard Debug and Release. You can also have different configurations based on different targets (VCL app's Debug build has different options than a FMX app's Debug build, etc.)
To change the default options first starts with defining "default". You can start as low as the "base configuration" through Project->Options->Delphi Compiler, and then choosing the All Configuration target. You can refine it somewhat by altering the base configuration for the Debug and Release configurations. You can also define your own option sets, using the Save button next to the Target list.
Your specific question about "specifying options as the default for multiple projects" means is the base configuration. From there, you refine those base options to give you debug settings and release settings (which can also be saved as your initial defaults, and refined on a per-project basis).
So, for a specific answer, you can change the default by modifying the base configuration, or by getting more specific by modifying the debug or release configurations that inherit from that base, depending on what your end result needs to be and what you're trying to accomplish.

How do I change active build configuration in Delphi?

Any time I compile, build or run my project it outputs the exe file into the Debug\Win32 folder, so I guess it is in debug mode.
When I go to : Project->Options I can see the debug(active)
But I don't know how to switch to release. When I change the combo to release, debug is still active.
Open the project manager from the View menu, or use the shortcut Ctrl+Alt+F11.
Find the Build Configurations node in the project manager's tree view and open it up.
Double click on Release.
The active build configuration is indicated in the project manager by boldface text.

Resources