NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
brake on every line


Joined: 19 Mar 2008
Posts: 3
Reply with quote
hello this is my second post here (the first one right below) i have reached a point in my projects where i am scanning for security holes the problem is some of my projects consist of over 3000 lines and i would like to examine the flow on every line is it possible to place a brake on every line in every file with out havenng to open every line and do it manually?
View user's profileFind all posts by docSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
is it possible to place a brake on every line in every file

I'm not sure why it would be needed at all. Please explain what you're going to do with those 3000 breaks.

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


Joined: 19 Mar 2008
Posts: 3
Reply with quote
well i have 2 reasons firstly is that i wish to recap each line of code to allow me to see parts that can be optimized, or improved (for example finding a function call that dosent do anything anymore etc

secondly is that it would be handy to study existing project from the OSS community for example SMF
View user's profileFind all posts by docSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
that looks like a brute-force approach.
why not to try the following two things:
-profile your code with profiler and inspect bottlenecks
-inspect code coverage with this tool: http://forum.nusphere.com/php-code-coverage-t3802.html

As of break on each line, I'm not sure why 3000 breaks would be any better than stepping through all the code with "step-in" command.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
brake on every line
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