SQLite Forum

BUG: Wrong line endings of shell.c prevent debugging on Windows
Login
Apologies for lack of detail. I'm unable to edit original message as I've posted anonymously (would be nice if Fossil left a cookie to let me do that or claim the post).

# Environment

- Windows 10 20H2
- Active code page (chcp): 437
- magicsplat-tcl-tk 1.10.1.20201009
- git 2.29.2.2
- Visual Studio Community 2019 Version 16.8.2

# Steps
```
# Developer Command Prompt for VS 2019
vsdevcmd
git clone https://github.com/sqlite/sqlite.git
cd sqlite
mkdir Debug
cd Debug
nmake /f ..\Makefile.msc TOP=..
```

At this point shell.c has mix of different EOL styles including a lot of the `\r\r\n`.


For actual debugging I'm importing project from existing code in VS under name 'sqlite3' and following build commands in `sqlite3.vcxproj`:

```xml
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    <NMakeFlags>/f ..\Makefile.msc TOP=.. DEBUG=3 USE_AMALGAMATION=0 DYNAMIC_SHELL=0</NMakeFlags>
    <NMakeBuildCommandLine>cd $(OutDir) &amp;&amp; nmake $(NMakeFlags)</NMakeBuildCommandLine>
    <NMakeCleanCommandLine>cd $(OutDir) &amp;&amp; nmake $(NMakeFlags) clean</NMakeCleanCommandLine>
    <NMakeReBuildCommandLine>cd $(OutDir) &amp;&amp; nmake $(NMakeFlags) clean core</NMakeReBuildCommandLine>
    <NMakePreprocessorDefinitions>WIN32;_DEBUG;SQLITE_ENABLE_DESERIALIZE;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
    <NMakeIncludeSearchPath>$(OutDir);$(NMakeIncludeSearchPath)</NMakeIncludeSearchPath>
  </PropertyGroup>
```

and then simple F5 does the trick