Some issues I noticed during evaluation/trial |
|
Concerning #1:
It seems as if PhpED tries to open every file directly requested by the browser plus the file where script execution ends. It might miss one of them, but reloading the corresponding frame/page will, hm, "work" . E. g. I start debugging by calling a login form, which is posted to a login script; the browser is redirected to a frameset containing three frames. Now after that I have (without having set breakpoints, without "stopping on the first line after run", without stepping through the code!) six open files. PEAR.php is one of them, having focus as the _PEAR_call_destructors method has been called last. (This explains issue #6 above?) One of the frame scripts is "missing" (I don't want to see it at all ), but reloading the frame pops it up. That makes a total of seven windows before I even reached the interesting part of the code . Concerning #7: This is a FAQ and - if I get it right - not possible. I'd like to be able to debug files on a remote (production) server not running samba. Copying everything to local first is too expensive. Also if you just want to edit the file (not running the debugger), you will have to make a local copy, edit that and publish it afterwards. You cannot edit files "purely remote", as it would be possible at least with Homesite. mp |
||||||||||||
|
Site Admin
|
Concerning #7:
You don't need all the files be copied locally, but the files being debugged only. Anyway, it's a normal practice when all files are kept and edited locally and sent to the web during a kind of sync. Especially if you use source-control system, you have no other choise . Concernint #1: It happens if you have frameset only. In order to debug such stuff you should add DBGSESSID argument to one of the scripts listed in FRAMESET and run frameset itself without debugger. |
||||||||||||
|
|
ad #1
Well, where's the point opening all those directly requested files if you don't "stop on the first line" and don't step into them? That does not apply to framesets only, PhpED will open all files your browser requests? This relates to #6 as it always opens the file where execution ends and leaves that one focussed. So you can't just change some lines, reload the file in the browser, switch back and continue; you will have to press Ctrl-F4 first to return to your position in code mp |
||||||||||||
|
Site Admin
|
Would you show a sample script that replicates the problem ? As far as I know PhpED does not open anything by its own intents It opens only files where you step in.
Problem with Framesets has no relation to the above. If you open a frameset, IE (or whatsoever browser) open all frames using independent HTTP connections and if you have DBGSESSID session cookie enabled, all they will get debug requests and therefore multiple debug sessions will attempt to start. PHPED 3.2 IDE can not handle more than just one debug session at a time.
Agreed. It's not too convenient to have last executed file opened at the end of debug session. But why don't you use navigation bar ? It would bring you back to the original point easily. Also, don't forget you can set "Default file to run" in the project settings. While you have it set, you don't need to switch to anything. |
||||||||||||||||||
|
|
Ddmitrie,
I really appreciate the support you're providing and the time you spend answering posts in this forum.
Try the following three scripts. Create a project for them, set test.php as the default file to run. "Close all files" and run the scripts in an external browser window by pressing F9 (don't set any breakpoints and make sure to disable "stop on first line after run"). Click the submit button in "test.php", and you'll get "Hello world". At least my PhpED installation has all three files open after that - even without using frames.
Assumed I've got a frameset, loading two php scripts. Now I'll set breakpoints in both of them. Reloading the frameset will miss the breakpoints in one of the two scripts, as the browser uses different connections? Which one will be missed is probably not predictable?
It's a matter of convenience. I would like to edit the code, press Ctrl-S to save it; switch to the browser; reload the frame or window; Alt-Tab to switch back to PhpED and continue working. Otherwise, you'll have to remember the file name , find it in the tab. Especially difficult if a dozen of files has been opened by the debugger and "your" file scrolled out of sight. Besides that, you might have a couple of files with the same name (index.php...) Then you probably won't find the right one as fast as you can press Ctrl-F4 . |
||||||||||||||||||||
|
Site Admin
|
Your help is great and I highly appreciate it.
All the issues are addressed in phped 3.3 with dbg-2.16.3. Now you can debug frameset(s) easily |
||||||||||||
Last edited by dmitri on Thu Feb 12, 2004 8:48 am; edited 1 time in total |
Some issues I noticed during evaluation/trial |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by