SublimeTextXdebug icon indicating copy to clipboard operation
SublimeTextXdebug copied to clipboard

XDebug stops at a line without (visible) breakpoint

Open chelder86 opened this issue 10 years ago • 6 comments

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:

  • ~/.config/sublime-text-3/Packages/User/Xdebug.breakpoints
  • The .sublime-workspace file
  • The Cache and Local folders from the ~/.config/sublime-text-3 folder

It's still stopping there!

chelder86 avatar Jan 05 '15 12:01 chelder86

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 avatar Jan 05 '15 14:01 chelder86

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

chelder86 avatar Jan 05 '15 15:01 chelder86

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 is_enabled_ 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 is_enabled_ 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 is_enabled_ 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 is_enabled_ 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 is_visible_ 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 is_visible_ 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'

unifreak avatar Dec 06 '15 07:12 unifreak

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

thomasandersen avatar May 15 '16 18:05 thomasandersen

try to clear all Xdebug Watch

kalecgos0616 avatar Sep 12 '17 03:09 kalecgos0616

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).

arifjusoh avatar Oct 09 '19 03:10 arifjusoh