martomo / SublimeTextXdebug

Xdebug debugger client for Sublime Text
MIT License
564 stars 89 forks source link

XDebug stops at a line without (visible) breakpoint #125

Open chelder86 opened 9 years ago

chelder86 commented 9 years ago

XDebug stops at a line but there is not any (visible) breakpoint there. I think there was a breakpoint there once but not anymore.

To remove it, I tried the following: 1) Put a breakpoint in that line to remove it right after. 2) Of course, I also pushed "Clear All Breakpoints". The debugger is still stopping in that line!

Where XDebug actually stores the breakpoints when we pushed Ctrl+F8? I guess must be some file somewhere where there is a sentence which tells Xdebug to stop in that line. I haven't been able to find that file yet. I tried to look for it in Auto Save Session.sublime_session and looking for some strings within my home folder using the grep command.

I'm on Ubuntu 14.04LTS. I'm on Sublime Text 3 build 3065. I installed XDebug through the package manager of Sublime.

Screenshot of Xdebug stopped but not (visible) breakpoint:

xdebug stopped but not breakpoint

More stuff I have done. I have removed:

It's still stopping there!

chelder86 commented 9 years ago

Now, it is also failing to move the cursor and show information in the Xdebug Context.

I posted this bug in another issue post [Xdebug fails to move the cursor when debugging and shows the XDebug Context empty]: https://github.com/martomo/SublimeTextXdebug/issues/126

chelder86 commented 9 years ago

I pushed Ctrl+F6 (Step Over) several times. I got the following errors:

1) Please restart Xdebug debugging session. Disconnected from Xdebug debugger engine. 'NoneType' object has no attribute 'send' 2) Please restart Xdebug debugging session. Disconnected from Xdebug debugger engine. 'utf-8' codec can't decode byte 0xc3 in position 1023: unexpected end of data.

I have attached a screenshot with the error:

xdebug error shown

unifreak commented 8 years ago

I got the same issue on win7 64bit, using sublime text 3 can't find any thing searching google

here the log in console I think related to this: Traceback (most recent call last): File "C:\Program Files\Sublimetext3\sublime_plugin.py", line 438, in isenabled ret = self.is_enabled(**args) File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 1223, in is_enabled File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 1230, in is_visible File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 503, in is_phpunitxml TypeError: argument of type 'NoneType' is not iterable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Program Files\Sublimetext3\sublime_plugin.py", line 442, in isenabled ret = self.is_enabled() File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 1223, in is_enabled File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 1230, in is_visible File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 503, in is_phpunitxml TypeError: argument of type 'NoneType' is not iterable Traceback (most recent call last): File "C:\Program Files\Sublimetext3\sublime_plugin.py", line 438, in isenabled ret = self.is_enabled(**args) File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 1223, in is_enabled File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 1230, in is_visible File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 503, in is_phpunitxml TypeError: argument of type 'NoneType' is not iterable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Program Files\Sublimetext3\sublime_plugin.py", line 442, in isenabled ret = self.is_enabled() File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 1223, in is_enabled File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 1230, in is_visible File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 503, in is_phpunitxml TypeError: argument of type 'NoneType' is not iterable Traceback (most recent call last): File "C:\Program Files\Sublimetext3\sublime_plugin.py", line 456, in isvisible ret = self.is_visible(**args) File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 1230, in is_visible File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 503, in is_phpunitxml TypeError: argument of type 'NoneType' is not iterable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Program Files\Sublimetext3\sublime_plugin.py", line 460, in isvisible ret = self.is_visible() File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 1230, in is_visible File "phpunit in C:\Program Files\Sublimetext3\Data\Installed Packages\PHPUnit.sublime-package", line 503, in is_phpunitxml TypeError: argument of type 'NoneType' is not iterable error: Please restart Xdebug debugging session. Disconnected from Xdebug debugger engine. [WinError 10054] 远程主机强迫关闭了一个现有的连接。 error: Please restart Xdebug debugging session. Disconnected from Xdebug debugger engine. 'NoneType' object has no attribute 'send'

thomasandersen commented 8 years ago

I may be late to the conversation here, but check the last entry in the Xdebug Stack tab. Does it say a PHP error?

By default, SublimeTextXdebug breaks on exceptions (see break_on_exception) In OP's case, I guess there is a PHP Notice error (hint: $settings). Fix the problem code and the debugger will continue to the next break point. Last option should be to override break_on_exception.

Source: http://stackoverflow.com/questions/33563495/sublime-xdebug-breaks-at-get-option-without-breakpoint

kalecgos0616 commented 7 years ago

try to clear all Xdebug Watch

arifjusoh commented 5 years ago

Have you try to drag the page with breakpoint to new window & try to load the page again or step into/over? It work for my case(Mac OSX 10.14.6).