Auto Completion in VS 2010 - c++

I'm currently trying VS2010 and while it's smooth, good looking, sexy would I even add, I've met a MAJOR Turn off, being still a big teen noob in C and C++, I need my AUTO Completion until I learn some of the lib's members.
I tried toggling the CTRL+ALT+SPACE Option, using the hotkeys, the Button in the EDIT Tab is disabled (grey) And LASTLY I tried it using the command but got a message saying that it's disabled. It works in other languages.

This blog post explains how to disable it ... perhaps you can use it to reverse the process? If you would like to see how nice VS2010 intellisense for C++ is compared to 2008, take a look at http://www.msteched.com/2010/NorthAmerica/DEV316

Related

Debugger popup message "Getting DataTip text"

This Debugger message pops up randomly while i am attempting to examine a variable while a breakpoint has hit in Visual Studio 2017.
Shortly thereafter, a larger message box appears that shows the following: "Evaluating the function 'System.Reflection.Assembly.LoadForm' timed out."
After enabling option Tools / Options / Debugging / General / Only managed code, the second message box have disappeared. But first message is still showing.
The problem is that first popup window appears for a relatively long time, that makes debugging process very noncomfortable. What else Visual Studio debugger options could I set to disable this popup?
(1)Tools->Options, uncheck the setting Debugging / General / Enable property evaluation and other implicit function call, and enable the Use Managed Compatibility Mode.
(2)Deleted all the .suo/obj/Bin/.user files in your project, and then re-open your project, clean and build your solution, debug it again.
This solution works fine for me:
Uncheck the new langage JavasScript Language Service in Options -> Editor -> JavaScript -> Language Service.
Option capture
I'm having this same issue and there doesn't appear to be a solution. It's extremely frustrating because when the "Getting DataTip text..." does popup and eventually goes away, my breakpoints no longer work.
The solutions listed here have not solved the problem, I've tried them ALL ... even a wipe and re-install of OS and VS 2015.
Debugging without ability to do property evaluation and other implicit function calls is basically NOT debugging and defeats the purpose.
Microsoft seem to be aware of the problem but keep closing the tickets as "unable to replicate" ... yet, a simple Google Search will show many many thousands of hits of developers running into this problem. I keep opening tickets with Microsoft, but they just keep getting closed or merged with no solution.
Cheers, Rob.
The ONLY solution that worked for me:
CMD window (Run As Admin)
type SFC /SCANNOW and wait for it to complete and hopefully fix any errors
Reboot
Bring up VS 2015 or 2017 without loading any project
In VS select Tools | Import and Export Settings | Reset all Setting ... now pick the template you use (i.e. VB, C, Web)
Exit VS
Load VS project and debug
Cheers, Rob.
Old post, but maybe it will help someone anyway ;)
In my case I got this every time I examined the first variable while debugging.
Annoying as hell as I due to the nature of the work restart the debugger often.
This was cause by that the location where my Visual Studio 2017 files were saved, was a cloud drive and it actually had to sync the files before showing the data.
The solution was to mark that whole folder "Always keep on this device".
Cheers,
​Here is one possible solution:
I had this error never seen - then my graphics card (Nvidia) was gone and I removed the graphics card and worked with the integrated Intel. Then I got this error in after 3-4 steps. I installed a Nvidia again and now the "getting data" text message was never shown again.
Btw: this was the fix for the error
"64 bit debugging operation is taking longer than expected"
I had the same issue when I wanted to evaluate variables while debugging in my Unit tests and couldn't find any solution.
This is the solution that helped me: Tools -> Options / Debugging / General. Uncheck "Call string-conversion function on objects in variables windows".
This might only work for some people.

How do I turn on code completion in Dev-C++?

I am using Dev-C++ version 5.11. It has feature of code completion, but it is not turned on. I don't know how to do that because I am using Dev-C++ for the first time. Any help will be appreciated!
You need to go to Tools->Editor Options->Completion->The tab code completion and then click "Enable code completion" box
you can also change the delay with which the prediction will be made
Note: Its not going to predict variables names or function names. By the time i write this, it only predict things you put after the -> operator
It's not gonna show you the member functions inside your header file if you're calling the class member functions from another file. works if you use the class and main in the same file.
My man I have the answer
--DevC++ is an awesome IDE and I don't have any plans to move to any other IDE. So I found Intellisense in DevC++ and the best part YOU DON'T NEED ANY ADDONS OR PLUGINS it's just hidden in the DevC++ shortcuts. (I have been using Dev C++ NEWER VERSION so I dont know about the old version and I do recommend the new version found on sourceforge) so when you need Intellisense simply press Ctrl+Space. Yup That's it . Just try .U Can thank me later...................

Visual Studio 2013 Profiling a Cinder project, not a single function call shows up

I recently upgraded to Visual Studio 2013, and found myself in the unusual position of suddenly needing to make use of a new aspect of VS that I've never worked with before. The profiler!
Long story short - I'm working a with a simple GUI framework I've designed, that recently had gesture support added. To my horror I found what worked more or less fine in one project, bogged down my main app quite horribly. I have a fairly good idea of what's causing it, but I'd still like confirmation - and since I will likely be working quite a bit more on the framework I'm building, it certainly doesn't help to have some profiling tools in place to remove eventual bottlenecks.
I ran the Visual studio performance wizard and was surprised to see (in the 'Call Tree' view) that the output consists of essentially nothing but calls to my TTD.exe (main application) and a bunch to ntdll.dll as well as few other DLLs I'm using.
That's fine and dandy - but I was expecting a much more granular report. As in - which of my functions were being used X percent of the time and the likes. Not a single function is mentioned anywhere...
Googling a bit, I found this particular link:
http://blogs.msdn.com/b/scarroll/archive/2005/04/13/407984.aspx
but I highly doubt that I need to use an additional server just to serve up my - possibly missing - symbols?
I'm a bit at a loss where to begin. Perhaps the issue is that I'm using Cinder and it does a bunch of stuff behind the scenes when starting up the app? To clarify - I'm not running my app from a std. main function. Cinder essentially provides a base framework called through a macro and then my app takes over via a number of setup(), draw() and update() calls. I'd just expect to see these littered all about.
But no... O_o
Has anyone encountered anything similar?
Regards,
Gazoo
You need to link your executable and DLLs with debug symbols.
In Debug builds this is on by default but in Release builds it's off by default.
Project properties->Linker->Debugging->Generate Debug Info = Yes (/DEBUG)

Visual Studio blocks the UI for minutes at a time for C++/XAML file

Every time I view my XAML file, Visual Studio hangs for several minutes (the UI is blocked completely). I'm working with a DirectX/C++ project with a XAML wrapper (using SwapChainBackgroundPanel).
What I've tried:
Using the Windows::ApplicationModel::DesignMode::DesignModeEnabled condition in the code behind
Using XAML mode only (not split view or design mode)
Lighting myself on fire
The hanging persists. I'm so desperate that I've resorted to using Notepad++ to edit this one file, but then I don't have Visual Studio to catch my dumb typos.
Is there any imaginable way around this?
first of all try this.
Also I recommend to disable design view default for XAML files in options:
Tools -> Options... -> Text Editor -> XAML -> Misc -> Always open documents in full XAML view.
FYI: this recommendations made my VS2012 faster.
Well, I don't know what was causing this, but subsequent experiences with VS2012 have taught me a likely culprit. (And Michael alluded to this in his answer.) The XAML designer spawns multiple processes, each of which are unfathomable memory hogs. I have taken to offing these so-called "XDesProc.exe" via the Task Manager, with extreme prejudice.

Saving debugging state and backwards debugging with Xcode or friends

I am using Xcode in order to debug C++ programs. The main problem for me is that it takes around 10 munutes till the program gets to the point of the program that I need to debug. Then I realize about something inspecting the variables and some other stuff, and modify the code. Then 15 minutes again and so ...
I wonder if there is possible in some way in Xcode or in another IDE or compiler/debugger for C++, to "save" in some way a desired debugging state of the program. So if my compouter crashes or I modify the code and make some mistakes, one can open this saved state instantly and get fast to the point where one left before.
I also wonder if at this moment Xcode can "backwards debugging". GDB can for sure, as for september 2009. Or what do you think is the best IDE to do this.
Thanks a lot
GDB has "backwards debugging" (or more correctly "Reverse Debugging") for a limited number of platforms (list of native supported ones):
i386-linux
amd64-linux
moxie-elf ( http://moxielogic.org/blog/ )
So it is impossible for now to use this functionality on Mac OS X, with Xcode or without it.
Saving of program state in offline is very hard task. It is almost impossible to restore state of file descriptors, network connections, memory state (randomization of layout), even pid.
Such task is related to "Live migration" problem in openvz.
"Edit and Continue" feature from MSVS allow you to continue running after breakpoint with new version of code. It is supported for C#, C++ and Basic.
http://msdn.microsoft.com/en-us/library/esaeyddf(VS.80).aspx