NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Disable debug session once.


Joined: 04 Nov 2019
Posts: 8
Reply with quote
I would like to disable debug for certain queries. for example, those that upload a large file, as the IDE freezes.

if I use the session parameters &DBGSESSID=1;d=0 then this disables debug completely. which is not convenient.

thanks!
View user's profileFind all posts by radiySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
Interesting. It shouldn't freeze.
Can you try to remove breakpoints and check if it still freezes without them?
Same goes to expressions in Watches.

As of disabling debugger - I'm sorry, IDE does not support it. May be I'll find a way how to implement it in the future.
Perhaps, as a workaround, you can add re-write rules for your web server to remove DBGSESSID cookie or re-write the URL to add DBGSESSID get parameter with "-1" value to the URL.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 04 Nov 2019
Posts: 8
Reply with quote
I mixed up upload/download. I mean a request that at the end returns a large file or just a file request. This is usually a picture or pdf. IDE hangs on load time, which is much slower than without debug. can this be somehow configured?
View user's profileFind all posts by radiySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
It does not make any difference if you script produces large output or no output at all.
What makes difference is if you stop debugger and have large value in a variable.
Do you by a chance have all the large output in a variable?

Also I'd recommend you to try set an external browser by default.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 04 Nov 2019
Posts: 8
Reply with quote
I use remote debug and external browser. script returns file.
without breakpoints
phped 19.1

http return:

Code:

HTTP/1.1 200 OK
Date: Thu, 28 Nov 2019 10:29:17 GMT
Server: Apache/2.4.18 (Ubuntu)
Set-Cookie: DBGSESSID=437974764688900003%3Bd%3D1%2Cp%3D0%2Cc%3D1; path=/; version=1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Content-Disposition: attachment; filename*=UTF-8\'\'0.pdf
Content-Length: 1067102
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Accept, Origin, Authorization
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH, OPTIONS
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/pdf
View user's profileFind all posts by radiySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
Can you please post a short script reproducing the problem with freezing the IDE and steps leading the it?
I made some efforts in attempt to reproduce it and no freezes so far.

RE your question about disabling debugger for certain URLs, you can turn off debug session in the debugger properties, either per project or IDE-wide -- see project properties->debugger settings or tools->settings->Run & Debug/settings. With debug sessions turned off, you have to supply DBGSESSID with each HTTP request that you want debugger to trigger on. Details on this are in FAQ area: http://www.nusphere.com/kb/technicalfaq/faq_dbg_related.htm

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 04 Nov 2019
Posts: 8
Reply with quote
https://drive.google.com/file/d/18c5gIqc2UjvCEK9e6I15Vzqimw4sqPd8/view

this is just an example. and code and file size. actually more, more complex and, accordingly,
the IDE freezes much longer. I used the DebugBreak function to keep the experiment clean, so to speak Smile.

спосибо.
View user's profileFind all posts by radiySend private message
Disable debug session once.
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic