Why the Console of Xcode10.1 can't display my input? - input

This bug was found after I updated to macOS Majove.
When I tried to do a small test on my Xcode, I found the console couldn't display the numbers that I typed but the numbers were truly read into memory.
And it still could work!
The amazing thing was when I changed the theme of the Xcode, it showed up!
My images will show the detail.
I think it's a bug of Xcode.
Is there any way to solve the problem?
I will be appreciated!
Thanks :)
=========================18/12/19UPDATED=================================
There's an another detail that the console will display my input the first time I run the program and it won't display later.
I found a temporary method to solve this issue. Just “printf” something before the “scanf” and the console will display the input. But it’s only a makeshift!

Related

sikuliX cant find image

I am just learning to use SikuliX and for some reason it worked on a few attempts but after awhile it started to not detect the image that i want to click.
This is the screenshot of my sikuli. Not sure what the error is about.
I am using a mac so i want sikuli to click on the search icon button at the top right hand corner.
This is my matching preview.
Sorry my problem seems so trivial but yet i am not able to understand why it is not working.
I realised it could be an issue regarding multi - monitor environments.

Intellij search in file causes full screen box to appear

Apologies if this belongs on a different stack exchange site.
Using Intellij Ultimate v 2017.1.1 on OSX Sierra, when I do a search in file, using CMD+f, I get an unusable full screen search dialog. Has anyone seen this ? Images attached.
Before clicking CMD+f (all is well)
I try to search for something:
Any help appreciated. The Internets has so far yielded no help.
This issue is already fixed, please see https://youtrack.jetbrains.com/issue/IDEA-170295 for details.
It was caused by the Swing MigLayout misbehavior when system DPI was extremely high.
This can happen if you accidentally paste a huge block of code into the finder, try CMD+f and then CMD+a and finally delete.

XCode crashes on start up

Yes, this happens to people. Yes, I've looked at all the solutions.
This is different.
XCode starts and there is no error message, it just freezes. This is the screen I get:
That's it. No errors. I can't interact with it, I can't close it. The only thing I can do is use Show All Windows. There are five and yes I don't need them all (never did! don't know why I have them) but I can't close any of them. To get rid of it I need to do a hard reset.
I've tried deleting the library file in Finder as this was one of the solutions.
Nope.
Anyone any ideas?
I think it's XCode 6 (the latest) but I can't tell because I can't access the menu.
I ended up scouring Stackoverflow for ways to clear the startup process.
You hold cmd+shift when you start XCode - ONLY from the task bar, this does NOT work if you go into the Applications folder - and it will load blank.
Then you can load your project.

Debugging - Finding where Error statement in log is coming from [duplicate]

I'm not sure if this is possible. Here is an example situation:
Something is printing to my console and I don't know where it is coming from in the code. I did a quick search using the Finder in Xcode on terms such as 'NSLog' and 'print'. Nothing relevant came up.
Is there any quick way that Xcode has of finding where the source of the output is coming from ?
Kind of like when you right click on a method and you have all the options of exploring different parts of the code associated with that method.
Also: are there other functions that print besides NSLog and print?
Thanks so much!
Try running in the debugger, with breakpoints set on printf, NSLog, etc. When you hit a breakpoint do a backtrace (bt) to see where it's being called from
There's a plugin LinkedLog for that. You replace all NSLogs with LLogs and then will be able to just tap on link in Xcode's console to get to the line caused it to appear.
Didn't try it myself, but definitely will.

The code flow jumps without getting into any of the if-block

I edited this question, as now it seems it's not a coding issue. Might be something with IDE or something else.
I am using Flash Develop 4.5.2 right now.
I added a small check in the class, to test equality. But it's showing strange result.
A 1 min video on Youtube about the problem => http://youtu.be/wHXs7nwyhow
![The flow jumps without getting any of the if-block][1]
[1]: http://i.stack.imgur.com/aD3YM.png
Might be some special characters issue. So, pasted it on notepad, and saved it back as ".as", but still that part is skipped by debugger. No matter, whatever i write there. ( See video )
Vishwas
Seems like a bug. I checked OFF "Omit trace actions" in Flash IDE ( So as to receive the trace statements in the trace window now ). And it's working fine now. ( It seems like Flash Develop debugger, tries ignoring those pieces of code, that are related with trace() in such case.