FIX: Cannot Set Breakpoint if Project Contains \C++\ in Path

Last reviewed: September 18, 1997
Article ID: Q122170
2.00 WINDOWS NT kbtool kbfixlist

The information in this article applies to:

  • The integrated debugger, included with: Microsoft Visual C++, 32-bit Edition, version 2.0 on the following platforms: x86, MIPS, Alpha, Power PC

SYMPTOMS

The debugger is unable to set breakpoints when you use the Visual C++ integrated debugger to debug a project located in a directory that contains non-alphanumeric characters (for example, a path that contains \C++\) -- which is a directory name supported by the Windows NT File System (NTFS).

It is possible to set a breakpoint in a source file, but attempting to start a debug session generates this error message:

  • The breakpoint "{,test.cpp,}.linenum" cannot be set

Here test.cpp is the source file and linenum is the line number where the breakpoint is set.

CAUSE

The integrated debugger can't handle file names supported only on NTFS.

RESOLUTION

Avoid the use of NTFS-specific file names or directory names.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was fixed in Microsoft Visual C++, 32-bit Edition, version 4.0.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create an MFC AppWizard project. When placing the project in a directory, give a directory name that contains special characters (for example, C++).

  2. Build the project for debug mode.

  3. Place a breakpoint on a line of code in your project.

  4. Press the F5 key. A dialog box should appear that reads, "The breakpoint ... cannot be set."


Additional reference words: IDE 2.00 buglist2.00
KBCategory: kbtool kbfixlist kbbuglist
KBSubCategory: WBDebug
Keywords : kbbuglist kbfixlist kbtool
Version : 2.00
Platform : NT WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.