Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code color changes to white when debugging #7659

Closed
linette-zyy opened this issue Jun 29, 2023 · 2 comments
Closed

Code color changes to white when debugging #7659

linette-zyy opened this issue Jun 29, 2023 · 2 comments
Labels
fixed in next version A fix has been implemented an will appear in an upcoming version waiting for upstream Waiting for upstream to release a fix

Comments

@linette-zyy
Copy link

Environment
image

Steps to Reproduce
1.Launch VS and create a python project
2.Type sample code and set a breakpoint
3.Start Debugging and Stop Debugging
4.Check the line where is set breakpoint

Expected behavior
Code's color is normal

Actual behavior
Code's color is changed to white, after I delete breakpoint, I can't see the code because of the background is white
code_change_color

Sample Code

from math import cos, radians 

 

# Create a string with spaces proportional to a cosine of x in degrees 

def make_dot_string(x): 

    rad = radians(x)                             # cos works with radians 

    numspaces = int(20 * cos(radians(x)) + 20)   # scale to 0-40 spaces 

    st = ' ' * numspaces + 'o'                   # place 'o' after the spaces 

    return st 

 

def main(): 

    for i in range(0, 1800, 12): 

        s = make_dot_string(i) 

        print(s) 

 

main() 
@linette-zyy linette-zyy changed the title Code color is changed to white when debug Code color changes to white when debugging Jun 29, 2023
@StellaHuang95
Copy link
Contributor

Looks like it's not python specific issue, see https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1841400. I will keep track of it.

@StellaHuang95 StellaHuang95 added waiting for upstream Waiting for upstream to release a fix fixed in next version A fix has been implemented an will appear in an upcoming version and removed needs triage labels Jun 29, 2023
@StellaHuang95
Copy link
Contributor

Looks like there's a fix for it from the upstream already. https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1841132. Should be fixed in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next version A fix has been implemented an will appear in an upcoming version waiting for upstream Waiting for upstream to release a fix
Projects
None yet
Development

No branches or pull requests

2 participants