gpt4 book ai didi

python - IDLE 无法在 Windows 上打开以进行调试构建

转载 作者:太空狗 更新时间:2023-10-30 01:38:19 25 4
gpt4 key购买 nike

我从http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz 下载了源代码并借助 http://docs.python.org/devguide/setup.html 中的说明,我能够从源代码构建 Python。

现在尝试运行命令时

C:\Python-2.7.6\PCbuild\pythonw_d.exe c:\Python-2.7.6\Lib\idlelib\idle.py

什么都没有显示。

所以我开始调试,首先通过以下代码片段向 Windows 应用程序添加一个控制台到 pythonw\WInMain.c

void RedirectStdoutToNewCOnsole()
{
HANDLE consoleHandle;
FILE *fp;
int fileDescriptor;
CONSOLE_SCREEN_BUFFER_INFO csbi;
AllocConsole();
consoleHandle = GetStdHandle(STD_OUTPUT_HANDLE);
fileDescriptor = _open_osfhandle((intptr_t)consoleHandle, _O_TEXT);
fp = _fdopen( fileDescriptor, "w" );
*stdout = *fp;
setvbuf( stdout, NULL, _IONBF, 0 );
if ( GetConsoleScreenBufferInfo(consoleHandle, &csbi) )
{
COORD bufferSize;
bufferSize.X = csbi.dwSize.X;
bufferSize.Y = 1000;
SetConsoleScreenBufferSize(consoleHandle, bufferSize);
}
}

我能够看到源代码被正确解析

Token NAME/'import' ... It's a keyword
DFA 'file_input', state 0: Push ...
DFA 'stmt', state 0: Push ...
DFA 'simple_stmt', state 0: Push ...
DFA 'small_stmt', state 0: Push ...
DFA 'import_stmt', state 0: Push ...
DFA 'import_name', state 0: Shift.
Token NAME/'os' ... It's a token we know
DFA 'import_name', state 1: Push ...
DFA 'dotted_as_names', state 0: Push ...
DFA 'dotted_as_name', state 0: Push ...
DFA 'dotted_name', state 0: Shift.
Token DOT/'.' ... It's a token we know
DFA 'dotted_name', state 1: Shift.
Token NAME/'path' ... It's a token we know
DFA 'dotted_name', state 0: Shift.
Token NEWLINE/'' ... It's a token we know
DFA 'dotted_name', state 1: Pop ...
DFA 'dotted_as_name', state 1: Pop ...
DFA 'dotted_as_names', state 1: Pop ...
DFA 'import_name', state 2: Pop ...
DFA 'import_stmt', state 1: Pop ...
DFA 'small_stmt', state 1: Pop ...
DFA 'simple_stmt', state 1: Shift.
DFA 'simple_stmt', state 3: Direct pop.
DFA 'stmt', state 1: Direct pop.
Token NAME/'import' ... It's a keyword
DFA 'file_input', state 0: Push ...
DFA 'stmt', state 0: Push ...
DFA 'simple_stmt', state 0: Push ...
DFA 'small_stmt', state 0: Push ...
DFA 'import_stmt', state 0: Push ...
DFA 'import_name', state 0: Shift.
Token NAME/'sys' ... It's a token we know
DFA 'import_name', state 1: Push ...
DFA 'dotted_as_names', state 0: Push ...
DFA 'dotted_as_name', state 0: Push ...
DFA 'dotted_name', state 0: Shift.
Token NEWLINE/'' ... It's a token we know
DFA 'dotted_name', state 1: Pop ...
DFA 'dotted_as_name', state 1: Pop ...
DFA 'dotted_as_names', state 1: Pop ...
DFA 'import_name', state 2: Pop ...
DFA 'import_stmt', state 1: Pop ...
DFA 'small_stmt', state 1: Pop ...
DFA 'simple_stmt', state 1: Shift.
DFA 'simple_stmt', state 3: Direct pop.
DFA 'stmt', state 1: Direct pop.
Token NAME/'idlelib_dir' ... It's a token we kno
DFA 'file_input', state 0: Push ...
DFA 'stmt', state 0: Push ...
DFA 'simple_stmt', state 0: Push ...
DFA 'small_stmt', state 0: Push ...
DFA 'expr_stmt', state 0: Push ...
DFA 'testlist', state 0: Push ...
DFA 'test', state 0: Push ...
DFA 'or_test', state 0: Push ...
DFA 'and_test', state 0: Push ...
DFA 'not_test', state 0: Push ...
DFA 'comparison', state 0: Push ...
DFA 'expr', state 0: Push ...
DFA 'xor_expr', state 0: Push ...
DFA 'and_expr', state 0: Push ...
DFA 'shift_expr', state 0: Push ...
DFA 'arith_expr', state 0: Push ...
DFA 'term', state 0: Push ...
DFA 'factor', state 0: Push ...
DFA 'power', state 0: Push ...
DFA 'atom', state 0: Shift.
DFA 'atom', state 5: Direct pop.
Token EQUAL/'=' ... It's a token we know
DFA 'power', state 1: Pop ...
DFA 'factor', state 2: Pop ...
DFA 'term', state 1: Pop ...
DFA 'arith_expr', state 1: Pop ...
DFA 'shift_expr', state 1: Pop ...
DFA 'and_expr', state 1: Pop ...
DFA 'xor_expr', state 1: Pop ...
DFA 'expr', state 1: Pop ...
DFA 'comparison', state 1: Pop ...
DFA 'not_test', state 2: Pop ...
DFA 'and_test', state 1: Pop ...
DFA 'or_test', state 1: Pop ...
DFA 'test', state 1: Pop ...
DFA 'testlist', state 1: Pop ...
DFA 'expr_stmt', state 1: Shift.
Token NAME/'os' ... It's a token we know
DFA 'expr_stmt', state 3: Push ...
DFA 'testlist', state 0: Push ...
DFA 'test', state 0: Push ...
DFA 'or_test', state 0: Push ...
DFA 'and_test', state 0: Push ...
DFA 'not_test', state 0: Push ...
DFA 'comparison', state 0: Push ...
DFA 'expr', state 0: Push ...
DFA 'xor_expr', state 0: Push ...
DFA 'and_expr', state 0: Push ...
DFA 'shift_expr', state 0: Push ...
DFA 'arith_expr', state 0: Push ...
DFA 'term', state 0: Push ...
DFA 'factor', state 0: Push ...
DFA 'power', state 0: Push ...
DFA 'atom', state 0: Shift.
DFA 'atom', state 5: Direct pop.
Token DOT/'.' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NAME/'path' ... It's a token we know
DFA 'trailer', state 3: Shift.
DFA 'trailer', state 5: Direct pop.
Token DOT/'.' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NAME/'dirname' ... It's a token we know
DFA 'trailer', state 3: Shift.
DFA 'trailer', state 5: Direct pop.
Token LPAR/'(' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NAME/'os' ... It's a token we know
DFA 'trailer', state 1: Push ...
DFA 'arglist', state 0: Push ...
DFA 'argument', state 0: Push ...
DFA 'test', state 0: Push ...
DFA 'or_test', state 0: Push ...
DFA 'and_test', state 0: Push ...
DFA 'not_test', state 0: Push ...
DFA 'comparison', state 0: Push ...
DFA 'expr', state 0: Push ...
DFA 'xor_expr', state 0: Push ...
DFA 'and_expr', state 0: Push ...
DFA 'shift_expr', state 0: Push ...
DFA 'arith_expr', state 0: Push ...
DFA 'term', state 0: Push ...
DFA 'factor', state 0: Push ...
DFA 'power', state 0: Push ...
DFA 'atom', state 0: Shift.
DFA 'atom', state 5: Direct pop.
Token DOT/'.' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NAME/'path' ... It's a token we know
DFA 'trailer', state 3: Shift.
DFA 'trailer', state 5: Direct pop.
Token DOT/'.' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NAME/'dirname' ... It's a token we know
DFA 'trailer', state 3: Shift.
DFA 'trailer', state 5: Direct pop.
Token LPAR/'(' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NAME/'os' ... It's a token we know
DFA 'trailer', state 1: Push ...
DFA 'arglist', state 0: Push ...
DFA 'argument', state 0: Push ...
DFA 'test', state 0: Push ...
DFA 'or_test', state 0: Push ...
DFA 'and_test', state 0: Push ...
DFA 'not_test', state 0: Push ...
DFA 'comparison', state 0: Push ...
DFA 'expr', state 0: Push ...
DFA 'xor_expr', state 0: Push ...
DFA 'and_expr', state 0: Push ...
DFA 'shift_expr', state 0: Push ...
DFA 'arith_expr', state 0: Push ...
DFA 'term', state 0: Push ...
DFA 'factor', state 0: Push ...
DFA 'power', state 0: Push ...
DFA 'atom', state 0: Shift.
DFA 'atom', state 5: Direct pop.
Token DOT/'.' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NAME/'path' ... It's a token we know
DFA 'trailer', state 3: Shift.
DFA 'trailer', state 5: Direct pop.
Token DOT/'.' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NAME/'abspath' ... It's a token we know
DFA 'trailer', state 3: Shift.
DFA 'trailer', state 5: Direct pop.
Token LPAR/'(' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NAME/'__file__' ... It's a token we know
DFA 'trailer', state 1: Push ...
DFA 'arglist', state 0: Push ...
DFA 'argument', state 0: Push ...
DFA 'test', state 0: Push ...
DFA 'or_test', state 0: Push ...
DFA 'and_test', state 0: Push ...
DFA 'not_test', state 0: Push ...
DFA 'comparison', state 0: Push ...
DFA 'expr', state 0: Push ...
DFA 'xor_expr', state 0: Push ...
DFA 'and_expr', state 0: Push ...
DFA 'shift_expr', state 0: Push ...
DFA 'arith_expr', state 0: Push ...
DFA 'term', state 0: Push ...
DFA 'factor', state 0: Push ...
DFA 'power', state 0: Push ...
DFA 'atom', state 0: Shift.
DFA 'atom', state 5: Direct pop.
Token RPAR/')' ... It's a token we know
DFA 'power', state 1: Pop ...
DFA 'factor', state 2: Pop ...
DFA 'term', state 1: Pop ...
DFA 'arith_expr', state 1: Pop ...
DFA 'shift_expr', state 1: Pop ...
DFA 'and_expr', state 1: Pop ...
DFA 'xor_expr', state 1: Pop ...
DFA 'expr', state 1: Pop ...
DFA 'comparison', state 1: Pop ...
DFA 'not_test', state 2: Pop ...
DFA 'and_test', state 1: Pop ...
DFA 'or_test', state 1: Pop ...
DFA 'test', state 1: Pop ...
DFA 'argument', state 1: Pop ...
DFA 'arglist', state 1: Pop ...
DFA 'trailer', state 4: Shift.
DFA 'trailer', state 5: Direct pop.
Token RPAR/')' ... It's a token we know
DFA 'power', state 1: Pop ...
DFA 'factor', state 2: Pop ...
DFA 'term', state 1: Pop ...
DFA 'arith_expr', state 1: Pop ...
DFA 'shift_expr', state 1: Pop ...
DFA 'and_expr', state 1: Pop ...
DFA 'xor_expr', state 1: Pop ...
DFA 'expr', state 1: Pop ...
DFA 'comparison', state 1: Pop ...
DFA 'not_test', state 2: Pop ...
DFA 'and_test', state 1: Pop ...
DFA 'or_test', state 1: Pop ...
DFA 'test', state 1: Pop ...
DFA 'argument', state 1: Pop ...
DFA 'arglist', state 1: Pop ...
DFA 'trailer', state 4: Shift.
DFA 'trailer', state 5: Direct pop.
Token RPAR/')' ... It's a token we know
DFA 'power', state 1: Pop ...
DFA 'factor', state 2: Pop ...
DFA 'term', state 1: Pop ...
DFA 'arith_expr', state 1: Pop ...
DFA 'shift_expr', state 1: Pop ...
DFA 'and_expr', state 1: Pop ...
DFA 'xor_expr', state 1: Pop ...
DFA 'expr', state 1: Pop ...
DFA 'comparison', state 1: Pop ...
DFA 'not_test', state 2: Pop ...
DFA 'and_test', state 1: Pop ...
DFA 'or_test', state 1: Pop ...
DFA 'test', state 1: Pop ...
DFA 'argument', state 1: Pop ...
DFA 'arglist', state 1: Pop ...
DFA 'trailer', state 4: Shift.
DFA 'trailer', state 5: Direct pop.
Token NEWLINE/'' ... It's a token we know
DFA 'power', state 1: Pop ...
DFA 'factor', state 2: Pop ...
DFA 'term', state 1: Pop ...
DFA 'arith_expr', state 1: Pop ...
DFA 'shift_expr', state 1: Pop ...
DFA 'and_expr', state 1: Pop ...
DFA 'xor_expr', state 1: Pop ...
DFA 'expr', state 1: Pop ...
DFA 'comparison', state 1: Pop ...
DFA 'not_test', state 2: Pop ...
DFA 'and_test', state 1: Pop ...
DFA 'or_test', state 1: Pop ...
DFA 'test', state 1: Pop ...
DFA 'testlist', state 1: Pop ...
DFA 'expr_stmt', state 5: Pop ...
DFA 'small_stmt', state 1: Pop ...
DFA 'simple_stmt', state 1: Shift.
DFA 'simple_stmt', state 3: Direct pop.
DFA 'stmt', state 1: Direct pop.
Token NAME/'sys' ... It's a token we know
DFA 'file_input', state 0: Push ...
DFA 'stmt', state 0: Push ...
DFA 'simple_stmt', state 0: Push ...
DFA 'small_stmt', state 0: Push ...
DFA 'expr_stmt', state 0: Push ...
DFA 'testlist', state 0: Push ...
DFA 'test', state 0: Push ...
DFA 'or_test', state 0: Push ...
DFA 'and_test', state 0: Push ...
DFA 'not_test', state 0: Push ...
DFA 'comparison', state 0: Push ...
DFA 'expr', state 0: Push ...
DFA 'xor_expr', state 0: Push ...
DFA 'and_expr', state 0: Push ...
DFA 'shift_expr', state 0: Push ...
DFA 'arith_expr', state 0: Push ...
DFA 'term', state 0: Push ...
DFA 'factor', state 0: Push ...
DFA 'power', state 0: Push ...
DFA 'atom', state 0: Shift.
DFA 'atom', state 5: Direct pop.
Token DOT/'.' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NAME/'path' ... It's a token we know
DFA 'trailer', state 3: Shift.
DFA 'trailer', state 5: Direct pop.
Token DOT/'.' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NAME/'insert' ... It's a token we know
DFA 'trailer', state 3: Shift.
DFA 'trailer', state 5: Direct pop.
Token LPAR/'(' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NUMBER/'0' ... It's a token we know
DFA 'trailer', state 1: Push ...
DFA 'arglist', state 0: Push ...
DFA 'argument', state 0: Push ...
DFA 'test', state 0: Push ...
DFA 'or_test', state 0: Push ...
DFA 'and_test', state 0: Push ...
DFA 'not_test', state 0: Push ...
DFA 'comparison', state 0: Push ...
DFA 'expr', state 0: Push ...
DFA 'xor_expr', state 0: Push ...
DFA 'and_expr', state 0: Push ...
DFA 'shift_expr', state 0: Push ...
DFA 'arith_expr', state 0: Push ...
DFA 'term', state 0: Push ...
DFA 'factor', state 0: Push ...
DFA 'power', state 0: Push ...
DFA 'atom', state 0: Shift.
DFA 'atom', state 5: Direct pop.
Token COMMA/',' ... It's a token we know
DFA 'power', state 1: Pop ...
DFA 'factor', state 2: Pop ...
DFA 'term', state 1: Pop ...
DFA 'arith_expr', state 1: Pop ...
DFA 'shift_expr', state 1: Pop ...
DFA 'and_expr', state 1: Pop ...
DFA 'xor_expr', state 1: Pop ...
DFA 'expr', state 1: Pop ...
DFA 'comparison', state 1: Pop ...
DFA 'not_test', state 2: Pop ...
DFA 'and_test', state 1: Pop ...
DFA 'or_test', state 1: Pop ...
DFA 'test', state 1: Pop ...
DFA 'argument', state 1: Pop ...
DFA 'arglist', state 1: Shift.
Token NAME/'idlelib_dir' ... It's a token we kno
DFA 'arglist', state 4: Push ...
DFA 'argument', state 0: Push ...
DFA 'test', state 0: Push ...
DFA 'or_test', state 0: Push ...
DFA 'and_test', state 0: Push ...
DFA 'not_test', state 0: Push ...
DFA 'comparison', state 0: Push ...
DFA 'expr', state 0: Push ...
DFA 'xor_expr', state 0: Push ...
DFA 'and_expr', state 0: Push ...
DFA 'shift_expr', state 0: Push ...
DFA 'arith_expr', state 0: Push ...
DFA 'term', state 0: Push ...
DFA 'factor', state 0: Push ...
DFA 'power', state 0: Push ...
DFA 'atom', state 0: Shift.
DFA 'atom', state 5: Direct pop.
Token RPAR/')' ... It's a token we know
DFA 'power', state 1: Pop ...
DFA 'factor', state 2: Pop ...
DFA 'term', state 1: Pop ...
DFA 'arith_expr', state 1: Pop ...
DFA 'shift_expr', state 1: Pop ...
DFA 'and_expr', state 1: Pop ...
DFA 'xor_expr', state 1: Pop ...
DFA 'expr', state 1: Pop ...
DFA 'comparison', state 1: Pop ...
DFA 'not_test', state 2: Pop ...
DFA 'and_test', state 1: Pop ...
DFA 'or_test', state 1: Pop ...
DFA 'test', state 1: Pop ...
DFA 'argument', state 1: Pop ...
DFA 'arglist', state 1: Pop ...
DFA 'trailer', state 4: Shift.
DFA 'trailer', state 5: Direct pop.
Token NEWLINE/'' ... It's a token we know
DFA 'power', state 1: Pop ...
DFA 'factor', state 2: Pop ...
DFA 'term', state 1: Pop ...
DFA 'arith_expr', state 1: Pop ...
DFA 'shift_expr', state 1: Pop ...
DFA 'and_expr', state 1: Pop ...
DFA 'xor_expr', state 1: Pop ...
DFA 'expr', state 1: Pop ...
DFA 'comparison', state 1: Pop ...
DFA 'not_test', state 2: Pop ...
DFA 'and_test', state 1: Pop ...
DFA 'or_test', state 1: Pop ...
DFA 'test', state 1: Pop ...
DFA 'testlist', state 1: Pop ...
DFA 'expr_stmt', state 1: Pop ...
DFA 'small_stmt', state 1: Pop ...
DFA 'simple_stmt', state 1: Shift.
DFA 'simple_stmt', state 3: Direct pop.
DFA 'stmt', state 1: Direct pop.
Token NAME/'import' ... It's a keyword
DFA 'file_input', state 0: Push ...
DFA 'stmt', state 0: Push ...
DFA 'simple_stmt', state 0: Push ...
DFA 'small_stmt', state 0: Push ...
DFA 'import_stmt', state 0: Push ...
DFA 'import_name', state 0: Shift.
Token NAME/'idlelib' ... It's a token we know
DFA 'import_name', state 1: Push ...
DFA 'dotted_as_names', state 0: Push ...
DFA 'dotted_as_name', state 0: Push ...
DFA 'dotted_name', state 0: Shift.
Token DOT/'.' ... It's a token we know
DFA 'dotted_name', state 1: Shift.
Token NAME/'PyShell' ... It's a token we know
DFA 'dotted_name', state 0: Shift.
Token NEWLINE/'' ... It's a token we know
DFA 'dotted_name', state 1: Pop ...
DFA 'dotted_as_name', state 1: Pop ...
DFA 'dotted_as_names', state 1: Pop ...
DFA 'import_name', state 2: Pop ...
DFA 'import_stmt', state 1: Pop ...
DFA 'small_stmt', state 1: Pop ...
DFA 'simple_stmt', state 1: Shift.
DFA 'simple_stmt', state 3: Direct pop.
DFA 'stmt', state 1: Direct pop.
Token NAME/'idlelib' ... It's a token we know
DFA 'file_input', state 0: Push ...
DFA 'stmt', state 0: Push ...
DFA 'simple_stmt', state 0: Push ...
DFA 'small_stmt', state 0: Push ...
DFA 'expr_stmt', state 0: Push ...
DFA 'testlist', state 0: Push ...
DFA 'test', state 0: Push ...
DFA 'or_test', state 0: Push ...
DFA 'and_test', state 0: Push ...
DFA 'not_test', state 0: Push ...
DFA 'comparison', state 0: Push ...
DFA 'expr', state 0: Push ...
DFA 'xor_expr', state 0: Push ...
DFA 'and_expr', state 0: Push ...
DFA 'shift_expr', state 0: Push ...
DFA 'arith_expr', state 0: Push ...
DFA 'term', state 0: Push ...
DFA 'factor', state 0: Push ...
DFA 'power', state 0: Push ...
DFA 'atom', state 0: Shift.
DFA 'atom', state 5: Direct pop.
Token DOT/'.' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NAME/'PyShell' ... It's a token we know
DFA 'trailer', state 3: Shift.
DFA 'trailer', state 5: Direct pop.
Token DOT/'.' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token NAME/'main' ... It's a token we know
DFA 'trailer', state 3: Shift.
DFA 'trailer', state 5: Direct pop.
Token LPAR/'(' ... It's a token we know
DFA 'power', state 1: Push ...
DFA 'trailer', state 0: Shift.
Token RPAR/')' ... It's a token we know
DFA 'trailer', state 1: Shift.
DFA 'trailer', state 5: Direct pop.
Token NEWLINE/'' ... It's a token we know
DFA 'power', state 1: Pop ...
DFA 'factor', state 2: Pop ...
DFA 'term', state 1: Pop ...
DFA 'arith_expr', state 1: Pop ...
DFA 'shift_expr', state 1: Pop ...
DFA 'and_expr', state 1: Pop ...
DFA 'xor_expr', state 1: Pop ...
DFA 'expr', state 1: Pop ...
DFA 'comparison', state 1: Pop ...
DFA 'not_test', state 2: Pop ...
DFA 'and_test', state 1: Pop ...
DFA 'or_test', state 1: Pop ...
DFA 'test', state 1: Pop ...
DFA 'testlist', state 1: Pop ...
DFA 'expr_stmt', state 1: Pop ...
DFA 'small_stmt', state 1: Pop ...
DFA 'simple_stmt', state 1: Shift.
DFA 'simple_stmt', state 3: Direct pop.
DFA 'stmt', state 1: Direct pop.
Token NEWLINE/'' ... It's a token we know
DFA 'file_input', state 0: Shift.
Token ENDMARKER/'' ... It's a token we know
DFA 'file_input', state 0: Shift.
DFA 'file_input', state 1: Direct pop.
ACCEPT.

并且能够追踪到所有调用

python27_d.dll!PyEval_EvalCodeEx
python27_d.dll!PyEval_EvalCode
python27_d.dll!run_mod
python27_d.dll!PyRun_FileExFlags
python27_d.dll!PyRun_SimpleFileExFlags
python27_d.dll!PyRun_AnyFileExFlags
python27_d.dll!Py_Main

但随后被 PyEval_EvalCodeEx 的递归调用所困扰。

之前,我尝试通过 procmon 比较 pythonw.exe 的工作发布版本和失败的 pythonw_d.exe 调试版本的输出,但没有取得成果。

有用的数据

  • 64 位 Windows 7
  • Python 2.7.6 VC9.0编译为32位App

需要诊断帮助或调试问题的指导。

最佳答案

尝试通过转到创建 C: 目录的路径控制面板 > 系统和维护 > 高级系统设置 > 系统属性 > 环境变量 > 然后去路径中添加一个分号然后是python安装的位置。然后调试。

关于python - IDLE 无法在 Windows 上打开以进行调试构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20297979/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com