KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

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

Article: Q122170
Product(s): Microsoft C Compiler
Version(s): winnt:
Operating System(s): 
Keyword(s): kbbuglist kbfixlist
Last Modified: 30-JUL-2001

-------------------------------------------------------------------------------
The information in this article applies to:

- The Integrated Debugger, included with:
   - *EDITOR Please do not choose this product*Microsoft Visual C++ 32-bit Edition* use 241, 265, 225, version 2.0 
-------------------------------------------------------------------------------

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 query words: IDE 2.00 buglist2.00

======================================================================
Keywords          :  kbbuglist kbfixlist
Technology        : kbVCsearch kbAudDeveloper kbIntegratedDebugger
Version           : winnt:
Issue type        : kbbug
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.

Copyright Microsoft Corporation 1986-2002.