PHPEd ignores breakpoints following DebugBreak() *solved* |
Guru master
|
Hey sorry for bumping this topic again, but I have the same problem.
I have a project, correctly configured (I can debug it from within the editor sans problemes). The project is opened and active. DebugBreak stops and stepping further through the code is not a problem. There are no mapping errors in the Log, only thing I see is that it reports ID= (but i assume thats normal) All breakpoints are ignored though. I have no clue what to do to get it working (I just always assumed breakpoints didn't work when initiating a session via DebugBreak). Atm I'm using phpEd 4.6.4614 but I it was the same in all versions afaik. |
||||||||||||
|
Veteran
|
I have the same problem with debugbreak(). The behaviour is the same. I use it mainly when debugging scripts involving AJAX. They are called by the browser and I intercept the call to check parameters and step through the code. But the debugger ignores all breakpoints I set. The only work around I found is to place many debugbreak calls in the code if it's long.
|
||||||||||||
|
Site Admin
|
after all, I was able to replicate that
Please enable JIT by setting debugger.JIT_enabled=On in php.ini and it will work like a charm. |
||||||||||||
|
Guru master
|
If you didn't live so far I would come over and kiss you!
Thanks, that seems to have solved it! |
||||||||||||
|
Veteran
|
Yes. It's working fine now. Just for curiosity, what "JIT" stands for? And why debugbreak is never mentioned in phpED help file? |
||||||||||||||
|
Guru master
|
JIT stands for Just In Time and is normally used to state that something is done at the moment it is needed, like JIT compiling etc... I presume it has something to do with assembling the list of breakpoints during the debugging instead of at the start... Anyway I'm glad it works, helps out a lot. |
||||||||||||||
|
Site Admin
|
JIT means that debugger should start capturing all necessary info from the beginning so it will be able to start debug session just in time when error happens.
I agree, there is no relation to the problem, it's just a workaround to get breakpoints working in this case. |
||||||||||||
|
Veteran
|
And why debugbreak is never mentioned in phpED help file? Does it accept parameters? Are there other "magic" undocumented functions like this?
|
||||||||||||
|
Site Admin
|
Yes it accepts just one argument - a string with the same syntax as in DBGSESSID.
Regarding documentation, there are some gaps up to now. But in this particular case, I don't believe that DebugBreak is too widely used and that there are cases when you can't live without it . Why not to use regular "Run In Debugger" and use breakpoints that are set in the IDE? |
||||||||||||
|
Veteran
|
I prefer debugbreak just because running in debugger makes it too much slower in those situations I know exactly where I want to debug. For example: I have a script, plenty of forms, with many input consistency checks and want to debug just when the user has passed all the checks and the script will finally save the data in database. And there are the ajax cases, where I debug only with debugbreak. About debugbreak, is it possible to set a condition as a parameter? If I put it inside a "for($i=..." loop and want that it come in action on the 100th cycle, I would just set debugbreak($i==100) |
||||||||||||||
|
PHPEd ignores breakpoints following DebugBreak() *solved* |
|
||
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