Eclipse IDE BUG - optimization level, debug level pops to NONE - eclipse

In Eclipse IDE I can’t set the debug level and optimization level no matter what i do.
The problem is when i try to set the debug level and optimization options under Project Properties > C/C++ Build > Tool Settings > GCC C++ Compiler > Debugging/Optimization. After selecting any option in the pulldown box, it pops back to “None” in both boxes.
I tried to create a new workspace with a new project, i tried to erase the system workbench and install again , make new projects with different processors.
Why can’t I change these settings?
By the way in another PC everything is working.
my versions:
Eclipse IDE Version: Neon.3 Release (4.6.3)
System Workbench for STM32 - OpenOCD (for Windows 32bits)
Version: 1.16.0.201807130628
windows 10 64 bit
Thanks
Sergey

Related

Running into JDK files from Eclipse IDE

I develop software on Eclipse Mars IDE, under MS Windows 10 OS, based on Java v7. And now I've got some configuration problems related to the IDE. What I want, is that to run into JDK source code from the IDE once I click on the 'step into' (or in other way). I've included the 'src.zip' on the path in the way provided by the IDE. Yet, when I attempt to run into the source code, the IDE says the 'source code not found'.
I want this feature in order to be able to debug some things related to my current app.
Regards
You need to set this through the Java->Installed JRE's found in Eclipse -> Window ->Preferences. See screen shot below.

Eclipse: no C/C++ option after installing CDT plugin

I use Eclipse to program in Java and , having already familiar with this development environment , I would use it for C/C++ projects.
Version: Eclipse SDK 4.2.2 (Juno)
O.S.: Ubuntu 12.04 LTS
I installed the CDT plugin by following the italian guide of the ubuntu documentation:
http://wiki.ubuntu-it.org/Programmazione/Eclipse#CDT
The only difference is that, at point 4, I have not included the source shown (Galileo), but the my version (Juno)
http://download.eclipse.org/tools/cdt/releases/juno
it's ok, found the source
CDT Main Features
CDT Optional Features
the installation is successful (indeed Eclipse show me CDT as the latest software installed, and an subsequent attempt to reinstall, Eclipse returns an error that it is already installed)
The problem is that when I restart Eclipse , I have no change. For instance , if I open the menu " File -> New -> Other" , I have no additional option to create a new C/C++ project.
I regularly installed on my computer the C/C++ compiler (gcc and g++ , version 4.6.3).
I also tried to install the plugin from the terminal:
sudo apt-get install eclipse-cdt
no change.
I search through the options in Eclipse to see if it was a problem enabling views of items in the menu, but nothing. Even in the "Window -> Preferences" I have no "C/C++" category .
I also changed my workspace ..... nothing .
Please help me, thanks
i had the same issue. i installed the latest eclipse, luna and mars. both had the c/c++ development tools.
my development environment had an older version of java installed, i.e. 1.6. apparently, luna/mars require 1.7 to be installed. i, at first, modified the eclipse.ini file to
-vmargs
-Dosgi.requiredJavaVersion=1.6
i started eclipse and the c/c++ project was not available. so i couldn't create a c/c++ project because it wasn't available in the wizard.
i updated my java to 1.7 on my machine; changed the eclipse.ini file back
-vmargs
-Dosgi.requiredJavaVersion=1.7
then started eclipse. viola. the option to create a c/c++ project is now available.
so basically, it seems that the newer eclipse requires 1.7 java. otherwise, it will disable features.
First of all, you have to open "C/C++ perspective". Try to go to menu "Window--Open Perspective -- Other--C/C++".
When you are in C/C++ perspective you should be able to create a new C/C++ project.
Also if you already have a loaded project, you can to convert to C++ project. Simply select it and then follow the right-click menu: "New" -- "Convert to a C/C++ Project (Adds C/C++ Nature)". Alternatively, simply go to menu File--New--Convert to C/C++ Project and it will show the list of all projects.
But again, the first and major step is to switch to C/C++ perspective.
Good luck!

Unable to start Netbeans 7.2 Profiler for Java ME projects

I'm trying to figure out why my Java ME app (a media player) is throwing Out of Memory Exceptions,however I have been unable to start the Netbeans profiler.The profiler works fine for other project types but is grayed out when I select any Java ME projects.
I tried to start it by invoking the emulator at the command prompt and supplying appropriate arguments(Xprofile to start cpu profiler and Xnetmon to start network monitor) but the emulator started without the profiling tools.
Next,I tried re-installing Netbeans hoping that would clear any configurations issues I might have ran into but still no luck.
Environment:
I'm using Windows 7 64bit with JDK version 1.7.0_04 and Netbeans 7.2 which comes with Java ME SDK 3.0.5 and I've installed Java SDK tools.
Other Info:
When I select the unintegrate profiler from project(under Advanced Commands under the Profile Menu) I get a message that it is not integrated in the first place but I have no idea how trigger this integration. When I select the calibrate profiler option I only see JDK 1.& platform and none of my Java Me Platforms.
I am not sure what the profiler is dependent on or of the quirks of Netbeans so I may not have provided enough information any pointers for more relevant information will be appreciated.
While searching for another answer I came across this question. The problem here is no J2ME platform is integrated with the IDE. The way to add a platform is : on Tools menu --> click "Java Platforms" --> click "Add Platforms..." button --> on the add platform wizard click "Java ME CLDC Platform Emulator" (2nd option) --> click "Next" --> browse and select location of your J2ME platform --> finish the add process. After restarting netbeans IDE the profiler will now be activated.

Eclipse Java EE to install C++ module

I have Eclipse IDE for Java EE packages installed. How can I add the C/C++ IDE to the current Eclipse install? Or is there a better way to do this?
Use Help > Install New software to open the Install dialog. There, you'll need to select the right update site from the drop-down list at the top. Depending on which version of Eclipse you have, it will most likely be Indigo or Helios.
After selecting the update site, the list below will populate with available features to install (be patient, it might take a minute). Look for the "Programming Languages" group in that list, expand it, and check the box next to "C/C++ Development Tools." If desired, you can also select the "incubation" features for C/C++ or CDT.
Click the Next button and follow the prompts to download and install CDT.
I use Eclipse Java EE IDE for Web Developers, Version: Neon.3 Release (4.6.3RC2) on Ubuntu. Here are the steps I installed C++ plugins:
Help > Eclipse Marketplaces..
In Find input box, enter C++
Scroll down to locate Eclipse C/C++ IDE CDT 9.2 (Neon.2)
Click Install
Note: you may see different C/C++ IDE CDT version if you use a different version of Eclipse Java EE IDE
In addition to the steps above to follow, I want to share a side effect of installing C/C++ modules in Java EE Eclipse: your custom hotkeys may not work.
The fix is:
Try to "Restore command" in "Preferences" - "Keys".
If it doesn't help, you can try to close Java perspective and reopen it. That did the trick for me.
I noticed that when the installation finishes and we restart, we see a C++ welcome screen. I guess that after a installation of CDT, this perspective and its hotkeys takes precedence over Java perspective, thus, reopen Java perspective make Java hotkeys take precedence over C++. But it's more like a bug.

Eclipse on OS X - Can't add a Debug Configuration

Does anyone know why when I press the new button in Eclise Debug Configuration under C/C++ Application nothing happens?
Creating a new Java test configuration does work but I need to create a C/C++ Debug configration. I was able to with ease (on the same project) under linux.
This is under OS X.
I was able to get this working by creating a sample C/C++ project and adding the debug configuration there. The configuration is then available to the Java (Android Native) project.
Strange as the project already has the CDT nature added to it.