Uniform Server PHP IDE: XDebug Overview: Difference between revisions

m
Additional cleanup
(Punctuation and grammatical changes; some clarification and additional explanation. Also fixed images to show port 9000.)
m (Additional cleanup)
 
Line 28: Line 28:
'''''Note 1'':''' Debugging is initiated as soon as the interpreter loads XDebug.
'''''Note 1'':''' Debugging is initiated as soon as the interpreter loads XDebug.


 
'''''Note 2'':''' If the script is initiated from an external source (for example, a batch file), XDebug determines if the script (F) is displayed in Notepad++. If not, it is downloaded.
'''''Note 2'':''' If the script is initiated from an external source (for example, a batch file) XDebug determines if the script (F) is displayed in Notepad++. If not, it is downloaded.




Line 49: Line 48:
* Step A) Start Notepad++.
* Step A) Start Notepad++.
* Step B) Notepad++'s client DBGp plugin opens socket 9000 (listens on port 9000)
* Step B) Notepad++'s client DBGp plugin opens socket 9000 (listens on port 9000)
* Step C) In a browser enter address of PHP page to be debugged.
* Step C) In a browser, enter address of PHP page to be debugged.
* Step D) Browser requests this page from Apache server over port 80
* Step D) Browser requests this page from Apache server over port 80
* Step E) Apache runs the PHP interpreter   
* Step E) Apache runs the PHP interpreter   
Line 70: Line 69:
'''''Note 1'':''' Debugging is initiated from a browser. XDebug determines if the page is displayed in Notepad++ and if not, it is downloaded.
'''''Note 1'':''' Debugging is initiated from a browser. XDebug determines if the page is displayed in Notepad++ and if not, it is downloaded.


'''''Note 2'':''' If XDebug starts debugging a new page, which is downloaded if not already displayed in Notepad++.
'''''Note 2'':''' If XDebug starts debugging a new page, that page is downloaded if not already displayed in Notepad++.


'''''Note 3'':''' During debugging, the browser shows page loading
'''''Note 3'':''' During debugging, the browser shows page loading


'''''Note 4'':''' After step A) you can directly load, edit and save the page to be debugged. After enabling the debug client at step B) you can set breaks points and then imitate a debug session via the browser Step C. Next page covers this in more details.
'''''Note 4'':''' After step A) you can directly load, edit and save the page to be debugged. After enabling the debug client at step B) you can set break points and then imitate a debug session via the browser, Step C. The next page covers this in more detail.




== Summary ==
== Summary ==
The above block diagrams show the commonality between the two architectures which are essentially the same. Each uses Notepadd++’s client plugin for debugging. This is covered in detail on the [[Uniform Server PHP IDE: IDE Overview | next page]].
The above block diagrams show the commonality between the two architectures, which are essentially the same. Each uses Notepadd++’s client plugin for debugging. This is covered in detail on the [[Uniform Server PHP IDE: IDE Overview | next page]].