1

Resolved

Debug REPL crash when evaluating variables during remote debugging

description

Remote debug the Python script used in the PTVS documentation (guess a number game).
Break on the print line asking the user to guess a number.
Open the Python Debug Interactive Window.
Evaluate the number variable.
I got empty text instead of the number.
Evaluate the name variable.
I got a null reference exception message and the debug interactive window hangs.

comments

huguesv wrote Mar 6 at 9:49 AM


Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue

Socket.ReadInt64 failed to read 8 bytes



at Microsoft.PythonTools.Debugger.Extensions.ReadInt64(Stream stream) in c:\Projects\TFS\PTVS\Feature\Python_2.0\Release\Product\Python\Debugger\Debugger\Extensions.cs:line 78

at Microsoft.PythonTools.Debugger.Extensions.ReadInt32(Stream stream) in c:\Projects\TFS\PTVS\Feature\Python_2.0\Release\Product\Python\Debugger\Debugger\Extensions.cs:line 71

at Microsoft.PythonTools.Debugger.Extensions.ReadString(Stream stream) in c:\Projects\TFS\PTVS\Feature\Python_2.0\Release\Product\Python\Debugger\Debugger\Extensions.cs:line 52

at Microsoft.PythonTools.Repl.BasePythonReplEvaluator.CommandProcessorThread.HandleModuleList() in c:\Projects\TFS\PTVS\Feature\Python_2.0\Release\Product\Python\PythonTools\PythonTools\Repl\BasePythonReplEvaluator.cs:line 498

at Microsoft.PythonTools.Repl.BasePythonReplEvaluator.CommandProcessorThread.OutputThread() in c:\Projects\TFS\PTVS\Feature\Python_2.0\Release\Product\Python\PythonTools\PythonTools\Repl\BasePythonReplEvaluator.cs:line 290

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ThreadHelper.ThreadStart()

Abort Retry Ignore

pminaev wrote Mar 25 at 5:26 PM

Fixed in internal branch.