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

Windows Debugger breaks on lowercase filename #272

Closed
dclarkNV opened this issue Sep 30, 2016 · 8 comments
Closed

Windows Debugger breaks on lowercase filename #272

dclarkNV opened this issue Sep 30, 2016 · 8 comments
Labels
debugger fixed Check the Milestone for the release in which the fix is or will be available.
Milestone

Comments

@dclarkNV
Copy link

VSCode Version: 1.5.3
OS Version: Win10
Steps to Reproduce:

Create an .exe that uses mixed case filenames. i.e. Source.cpp
Add a breakpoint to Source.cpp
Debug and hit the breakpoint
The editor will open up source.cpp alongside Source.cpp. The arrow pointing to the current line is in source.cpp, the breakpoints are in Source.cpp. It's pretty confusing. Both files can have their own sets of breakpoints now.

@delmyers
Copy link
Contributor

delmyers commented Oct 5, 2016

@dclarkNV, are you using mingw, Cygwin, or the Microsoft build tools?

@dclarkNV
Copy link
Author

dclarkNV commented Oct 5, 2016

Microsoft build tools (cppvsdbg)

@delmyers
Copy link
Contributor

delmyers commented Oct 5, 2016

@dclarkNV, then I have to ask a follow-up. Are you cloning a repository from git or something like that? It is normally difficult to get yourself into this situation on Windows because file names are not case sensitive. For example, if you attempt to create two files "source.cpp" and "Source.cpp" in the same location, Windows won't let you do that.

@dclarkNV
Copy link
Author

dclarkNV commented Oct 5, 2016

Let me clarify: There is no source.cpp, there is only Source.cpp.

However, when the debugger breaks on a line in Source.cpp, the editor opens up a new tab called "source.cpp". Now there are two tabs open, source.cpp and Source.cpp referring to the same file. They both appear to have their own separate set of breakpoints.

@delmyers
Copy link
Contributor

delmyers commented Oct 5, 2016

@weinand, it seems that this might be a bug in code, not in our debugger. Essentially, we are reporting to vscode that it should open a file, and vscode is not correctly discerning that the file is already opened.

@dclarkNV
Copy link
Author

dclarkNV commented Oct 5, 2016

Relevant closed bug in code microsoft/vscode#12922

@delmyers
Copy link
Contributor

delmyers commented Oct 7, 2016

I'm reopening microsoft/vscode#12922. I don't think that this is an issue with the debugger. It seems more like an issue with the editor.

@pieandcakes pieandcakes added the fixed Check the Milestone for the release in which the fix is or will be available. label Nov 10, 2017
@pieandcakes
Copy link
Contributor

This is fixed in the latest release (0.14.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger fixed Check the Milestone for the release in which the fix is or will be available.
Projects
None yet
Development

No branches or pull requests

3 participants