vltane / xdebugclient

Automatically exported from code.google.com/p/xdebugclient
0 stars 0 forks source link

System.ArgumentOutOfRangeException unhandled exception with "Run" (F5) #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. Create a page that throws an exception :

<?php

throw new Exception();

?>

2. Launch xdc and start listening

3. Hit the page

4. In xdc -> "Run" and you get the following exception :

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be
non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument
argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at xdc.XDebug.Client.Run(String command)
   at xdc.MainForm.SendContinuationCommand(String command)
   at xdc.MainForm.runToolStripMenuItem_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e,
ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e,
ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripMenuItem.ProcessCmdKey(Message& m, Keys
keyData)
   at System.Windows.Forms.ToolStripManager.ProcessShortcut(Message& m,
Keys shortcut)
   at System.Windows.Forms.ToolStripManager.ProcessCmdKey(Message& m, Keys
keyData)
   at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg,
Keys keyData)
   at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData)
   at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
   at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
   at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg,
Keys keyData)
   at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData)
   at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
   at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg,
Keys keyData)
   at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
   at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
   at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
   at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
   at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control
target, Message& msg)
   at
System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
xdc
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///H:/PHP/_xdebug-frontend/xdc.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e
089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/Sy
stem.Drawing.dll
----------------------------------------
WeifenLuo.WinFormsUI.Docking
    Assembly Version: 2.0.2649.16786
    Win32 Version: 2.0.2.0
    CodeBase: file:///H:/PHP/_xdebug-frontend/WeifenLuo.WinFormsUI.Docking.DLL
----------------------------------------
ICSharpCode.TextEditor
    Assembly Version: 2.0.0.1591
    Win32 Version: 2.0.0.1591
    CodeBase: file:///H:/PHP/_xdebug-frontend/ICSharpCode.TextEditor.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50
a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System
.Xml.dll
----------------------------------------
System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.W
eb.dll
----------------------------------------

===================

My php.ini for XDebug :
xdebug.remote_enable=1
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_mode="req"
xdebug.show_exception_trace=1
xdebug.auto_trace=1
xdebug.profiler_enable=1

Original issue reported on code.google.com by thomas.q...@gmail.com on 10 Jul 2007 at 8:22

GoogleCodeExporter commented 8 years ago
Hi Thomas,

Thank you for your report! 

I can't seem to reproduce this problem using XDebug 2.0.0RC3 and PHP 5.2.1 on 
Windows. 
Could you tell me what version of XDebug you are using?

Original comment by mathi...@gmail.com on 11 Jul 2007 at 3:52

GoogleCodeExporter commented 8 years ago
Hm sorry, forgot the most important :

PHP 5.2.3 
Xdebug v2.0.0RC4-dev

on Windows

Original comment by thomas.q...@gmail.com on 11 Jul 2007 at 4:34

GoogleCodeExporter commented 8 years ago
I could reproduce this behaviour now. It turns out that Xdebug isn't giving me a
stacktrace after an uncaught exception - which it used to do in 2.0RC3. I've 
filed a
bug with xdebug for this:

http://bugs.xdebug.org/bug_view_page.php?bug_id=0000292 ( login required )

I'll keep this open in the meantime.

Original comment by mathi...@gmail.com on 13 Jul 2007 at 5:24

GoogleCodeExporter commented 8 years ago
Uhm, I get the same error on PHP 5.3.13, WinXP and php_xdebug-2.2.1-5.3-vc9.dll.

How do I make this work?

Original comment by jedilando on 8 Dec 2012 at 2:10