chapgaga / xdebugclient

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

Automatically start debugging with a breakpoint on the first line #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Automatically start debugging with a breakpoint on the first line when
Xdebug connects.

Original issue reported on code.google.com by mathi...@gmail.com on 19 Jul 2007 at 11:36

GoogleCodeExporter commented 9 years ago
I think it DOES break at the first line, doesn't it?

Original comment by andrerdn...@googlemail.com on 23 Apr 2009 at 4:16

GoogleCodeExporter commented 9 years ago
No it doesn't. It waits in the "Initialized" state. Here is a patch to fix the 
issue:

Index: MainForm.cs
===================================================================
--- MainForm.cs (revision 24)
+++ MainForm.cs (working copy)
@@ -367,8 +367,10 @@
                 {
                     _statusFrm.WriteStatusLine("(-) XDebugClient initialized.");

-                    if (!xdc.Properties.Settings.Default.break_on_script_start)
-                        this.SendContinuationCommand("run");
+                   if (!xdc.Properties.Settings.Default.break_on_script_start)
+                       this.SendContinuationCommand("run");
+                   else
+                       this.SendContinuationCommand("step_into");
                 }
                 else
                 {  

Original comment by damjan.cvetko@gmail.com on 19 Sep 2012 at 7:04

GoogleCodeExporter commented 9 years ago
+1 to the issue.
Unable to debug anything if no breakpoints are set at all.
It just does noting, only keys that work are F9 and F5.
You can not debug whole script line by line (which is very useful, when you 
need to trace a complex project from the beginning).

Original comment by anrdae...@freemail.ru on 13 Aug 2014 at 6:33