How can I have Visual Studio show me details like in Eclipse when errors occur? is this simply a debugging feature that needs to be turned on (selected) or is there more to it?
maybe because it's a more important error :/ while(true) is a really bad idea you should better put a boolean that will stay true.
You should have the error you do appear on the back of the screen.
Related
Hay folks, i pray for everyone's wellbeing. I want to ask a question that whenever i enter playmode in unity, error message is displayed even though there is nothing in the console. This doesn't get fixed even after restarting unity. Any help would be great.
In Unity, there can be compiling errors without any console errors. To fix this the issue is most definitely in your code. So go over your code and check that statements return if needed. There can always be issues in the IDE (Visual Studio or whatever you are using to write the code) that do not show up in the editor (Unity) due to them being separate programs.
sometimes my changes cause an error and after fixing it, VS Code wont get rid of the error. In that case I have to close VS Code and reopen it.
Example:
I add at first an click-event to an html-element, that isnt defined yet in the component.ts File. Angular shows the red unterline and the error message. After defining the missing function, the error does not disapper (even if I save all files and/or refresh explorer). I have to restart VS Code.
Of course I can prevent this using the right order. But sometimes there are errors like this.
Does anybody have an idea how to fix this?
Thanks and best regards
Recently I asked a question and one of the guys here really tore into me about not using a debugger. Someone else was nice and suggested Visual Studio C++. I have been trying to work with it and it was really nice until I tried more complex code.
So I decided to try eclipse since that is the IDE I prefer. I got through the missing .gde file problem.
Now the debugger opens but It is only debugging assembly code files. This does me no good if it is not stepping through my own code.
It does not even get to my breakpoints or my code.
It don't help me to step through code I didn't write.
I really hope someone can help with this.
So the question is simple :
How to get Eclipse CDT to Debug my code I write and to stop and recognize breakpoints???
Below pic is what I am getting.
I finally just went with Visual studio, not my choice but it work better than the others for a debugger.
I use Eclipse Luna with PyDev for Eclipse 4.0.0.201504132356.
My function returns a list, which is a list of objects from one class.
So i use it like this:
List = ListMaker()
print List[0].Stuff.Stuff
and this works(!); i see exactly what should be in the list.
However, when making a new new line of code and writing:
List[0].
i get immediately a Problem Occured Message:
No Message gotten (null message)
Java.lang.StackOverflowError
which is clearly wrong; since i see the output is fine and simply clicking the message away. I used the same project in Visual Studio with Python Tools for Visual Studio and never had this Problem either.
Clicking this message away is although pretty annoying. Does someone know how to fix this?
EDIT: The error occures in org.python.pydev.shared_core
I faced the same issue. I upgraded to Pydev 4.1.0 and it was resolved.
http://pydev.org/history_pydev.html
The the list of fixes that went in 4.1.0
This really seems like some recursion issue on the type inference analysis for PyDev.
Can you please report that as a bug at https://sw-brainwy.rhcloud.com/tracker/PyDev/ so that I can take a look to fix it?
If you could create a github repo with sources where I can reproduce the issue, that'd be awesome.
Also, your error log probably contains the stack trace where this happened... At http://pydev.org/faq.html#PyDevFAQ-HowdoIReportaBUG%3F there are instructions on how to get it (please include that in the bug report).
Imagine:
Ok, so in vs 2013 (update 2) this works fine, no red squiggles or anything. But in the "OtherClass", when writing "im.", i get no auto-complete with suggestions of "MyInterface", as I would expect.
If i write something that does not exist in the namespace, the red squiggles appear. So some kind of intellisense exist.
If I however skip the "import" part and write the whole namespace: "foo.bar.a." I get auto-complete all the way and suggestion of MyInterface at the end.
I would like to use the import syntax to get shorter lines, but if I won't get auto-complete, suggestions, it's not worth it.
Does anyone have a solution for this? Getting the auto-complete while using import i mean.
Thanks!
The interface is auto generated by web essentials from a c# model, if that would help.
Update
Ok, so I found a setting under Tools -> Text Editor -> Typescript -> General
called "Auto list members". It was unchecked so I checked it and it does come up with the suggestion, but, it looks weird.
If you look closely you see that the suggestion is sort of on top of other the suggestions. Even in the second case which worked fine before. It does look like the screen shot Steve Fenton took, with the small white down arrow under the blue thing(an arrow that does not show for me when writing entire namespace in the First case), so I guess he might have this option checked. But it seems for me it does not work as well.
Update 2
Ok so the thief was resharper. Sorry I forgot to mention i used it.
I fixed it by changing to use vs 2013 Auto list members for typescript and shut it off for resharper like so: http://www.cloud-developer.eu/blog/2013/12/03/solved-intellisense-working-typescript-resharper-installed-using-visual-studio-2012/
But i checked "Visual Studio", instead of "Limited ReSharper Intellisense"
It works for me™, which suggests one of the following...
It could be a problem with the language service. This normally resolves when you close and re-open the file or when you restart Visual Studio.
If this isn't the case, it may be a bug in Visual Studio - something is making it mess up. You will almost certainly be asked to uninstall/reinstall before anyone will look at your bug, so do that if you still have a problem and see if it fixes it.
If neither of these help, it will be time to raise a bug for Visual Studio :(
Here is my screen shot of the working code:
Ok, as I stated it seems it was ReSharper intellisense vs Visual Studio 2013 intellisense.
The link under my Update 2 was a fine solution for me before, when I had Resharper 8.1 installed.
But it seems they have improved it and in 8.2 the original issue is fixed. So I have now unchecked the "auto list members" in vs2013 options and only use resharper.
I got the same problem using VS2013 and Resharper 8.2 but this was due to a error on my side in the path to the module I required. So I guess there is a bug that misses the error from my side...