Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the different between blue and black color at debug mode? [duplicate]

Why sometimes the text is blue and sometimes black?

enter image description here

enter image description here

like image 820
Asi Givati Avatar asked Dec 22 '14 08:12

Asi Givati


People also ask

What type of interface does the WD black/blue/red/purple drives use?

All the drives WD Black, blue, red and Purple use the SATA interfacing for interaction with the processor. All of the drives use SATA III interface to interact with the system. A number of times users have asked the same question related to western digital hard drives.

Is blue/green and red/black the same thing?

Spinnaker supports the red/black (a.k.a. blue/green) strategy, with rolling red/black and canary strategies in active development. So, contrary to the answer on StackOverflow, Netflix treats blue/green and red/black as the same thing.

What is the difference between blue-green deployment and red-black deployment?

In blue-green deployment, both versions may be getting requests at the same time temporarily, while in red-black only one of the versions is getting traffic at any point in time. The answer then goes on to say that:

Why are some USB ports blue in color?

Even the cables for that standard are blue. These ports support speed up to 5 Gbit/s, device and cable need to support this speed to benefit from it. Similar to how USB 3.0 ports are blue, USB 3.1 come in Teal Blue (like the one in the picture).


1 Answers

I'm very curious with this question, and did small test.

I'm not sure the thing which I have observed was right or not, but I did test it many times and got the same result.

Conclusion:

I observed that when you debug code and a variable on which pop up screen appears if it is still in use I mean existence of that variable is important to compiler than it will show black text. But after the value of that variable is no more required by compiler than it will shows blue text.

For an example:

enter image description here

In above image variable fileName is used in second line (it is not visible because pop up screen overlaps it, you can see it in next image) by a string variable so the text here is black for now. But see the next image

enter image description here

Here you can see that variable fileName is not used any more and debug pointer is at the end of the method. So the text becomes blue now.

Even in console window text is changing as per variable existence.

Reference to first image console screen:

enter image description here

Reference to second image console screen:

enter image description here

like image 132
Kampai Avatar answered Nov 05 '22 18:11

Kampai