diff options
| author | Neil <nyamatongwe@gmail.com> | 2025-10-29 17:03:25 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2025-10-29 17:03:25 +1100 |
| commit | 527af5a4ec23792f40dd26dbbc076b006d75369d (patch) | |
| tree | a8f8bee04146ded4abb0574870b17e32d7a74293 /src/PerLine.h | |
| parent | 66185664e71b7cd65fa933467e338c665b2d5b88 (diff) | |
| download | scintilla-mirror-527af5a4ec23792f40dd26dbbc076b006d75369d.tar.gz | |
Feature [feature-requests:#1567]. Fix running tests in Visual C++ debugger.
Set optional SCINTILLA_BIN environment variable to point to build directory.
It's unclear just what the problem was but Python 3.13 would crash out in window
handling code when run inside the debugger and using its HINSTANCE.
Changing to a global class and using None for the HINSTANCE made it work.
There are various other minor problems here like using c_int (32-bit) for the
window procedure return instead of c_ssize_t (64-bit) but they are not worth
destabilizing the code further.
Example Scintilla.vcxproj.user for debugging a test script with a particular
Python interpreter.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LocalDebuggerCommand>C:\Users\Neil\AppData\Local\Programs\Python\Python313\python.exe</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerCommandArguments>G:\u\hg\scintilla\test\simpleTests.py</LocalDebuggerCommandArguments>
<LocalDebuggerWorkingDirectory>G:\u\hg\scintilla\test\</LocalDebuggerWorkingDirectory>
<LocalDebuggerEnvironment>SCINTILLA_BIN=G:\\u\\hg\\scintilla\\win32\\x64\\Debug</LocalDebuggerEnvironment>
</PropertyGroup>
</Project>
Diffstat (limited to 'src/PerLine.h')
0 files changed, 0 insertions, 0 deletions
