It is currently Wed May 22, 2013 8:55 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Disallow breakpoint in lins with no executable command
PostPosted: Thu Jun 30, 2011 10:11 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 578
Location: germany
Hi,

I accidentially try'd to figure out why my debug breakpoint did not work. It needed some time to realize that it does not work on Include or XInclude :? I understand that this are no executable commands that the debugger can get a grab on. But it will be a helpful enhancement to disallow setting a breakpoint in commented lines, empty lines and lines that contain only commands that not work with debugger (like Include or XInclude and, maybe, others).

Kukulkan

_________________
When somebody says "Expect the unexpected" slap them in the face and say" You didn’t expect that, did you?"


Top
 Profile  
 
 Post subject: Re: Disallow breakpoint in lins with no executable command
PostPosted: Thu Jun 30, 2011 5:17 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 5:21 pm
Posts: 5188
Location: Germany
The breakpoint is always set on the next executable that follows if the current line is not executable.

_________________
Perl – The only language that looks the same before and after RSA encryption.
-- Keith Bostic


Top
 Profile  
 
 Post subject: Re: Disallow breakpoint in lins with no executable command
PostPosted: Thu Jun 30, 2011 5:33 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 1385
Location: Boston, MA
@freak,
One thing I am confused or annoyed by, is the breakpoint (while in debug mode) is not aligned with the cursor or caret in the IDE?

So, if I decide to turn off the break point with the [F9] key, it actually creates another breakpoint 1 line below the current break. :(

Any chance to align the cursor/caret with the break point?

Thanks.

_________________
To understand recursion, you must first understand recursion. ~ unknown
I never make stupid mistakes. Only very, very clever ones. ~ John Peel


Top
 Profile  
 
 Post subject: Re: Disallow breakpoint in lins with no executable command
PostPosted: Thu Jun 30, 2011 6:32 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 5:21 pm
Posts: 5188
Location: Germany
Then the background color that highlights the line with the cursor in it will hide the highlighting that shows the currently debugged line. This makes it hard to see which line the program is on.

_________________
Perl – The only language that looks the same before and after RSA encryption.
-- Keith Bostic


Top
 Profile  
 
 Post subject: Re: Disallow breakpoint in lins with no executable command
PostPosted: Thu Jun 30, 2011 7:04 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 1385
Location: Boston, MA
There is still the area between the line numbers and the text for that. :(
Please, this would save constantly backing up the cursor to toggle [F9].
I don't see this behavior in other IDE's I use.

_________________
To understand recursion, you must first understand recursion. ~ unknown
I never make stupid mistakes. Only very, very clever ones. ~ John Peel


Top
 Profile  
 
 Post subject: Re: Disallow breakpoint in lins with no executable command
PostPosted: Fri Jul 01, 2011 8:15 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 578
Location: germany
Hi,

Quote:
The breakpoint is always set on the next executable that follows if the current line is not executable.

Not really...

Code:
; a simple loader-file as the main file in purebasic
XInclude "main.pbi" ; <- set breakpoint here, for example
XInclude "tools.pbi"
; file finished

The main.pbi contains the executable code. I can set a breakpoint in one of the XInclude files and nothing happens. The executable runs with no break. It is not good to allow setting a breakpoint in such lines.

Kukulkan

_________________
When somebody says "Expect the unexpected" slap them in the face and say" You didn’t expect that, did you?"


Last edited by Kukulkan on Sat Jul 02, 2011 10:40 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Disallow breakpoint in lins with no executable command
PostPosted: Fri Jul 01, 2011 4:24 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 1385
Location: Boston, MA
I have also noticed different behavior of breakpoints depending on the use of projects.
If not using projects and there is a breakpoint in an include file, the debugger sometimes doesn't step into the include.

_________________
To understand recursion, you must first understand recursion. ~ unknown
I never make stupid mistakes. Only very, very clever ones. ~ John Peel


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye