Board index » delphi » Break Points
and...@hk.super.net (Mr Anders Lee)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
and...@hk.super.net (Mr Anders Lee)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Break PointsDoes anybody know is Borland Pascal be able to set a break point The conditional breakpoint only allow me to perform a check Regards |
DOYLE PATRI
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Break PointsIn article <3uot9o$...@tst.hk.super.net>, Mr Anders Lee <and...@hk.super.net> wrote: Quote
something BIG!) Just set conditional breakpoints on every line that changes the value of I. (I know, it might be a lot, but whaddaya do...) -Pat |
Duncan Murdo
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Break PointsIn article <DCAy1C....@ecf.toronto.edu> doy...@ecf.toronto.edu (DOYLE PATRICK) writes: Quote>In article <3uot9o$...@tst.hk.super.net>, breakpoint. Duncan Murdoch |
Brian Fros
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Break PointsIf its a TVision app, put the check in the message loop, or in 'Idle'. It will get a lot of time. Bri |
Lars Marius Garsh
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Break PointsIn article <3uot9o$...@tst.hk.super.net>, and...@hk.super.net (Mr Anders Lee) writes: I was a bit surprised to read two answers to this, both saying that cond. You make an ordinary breakpoint (unconditional.) Then you enter the menu, --Lars M. ___________________________________________________________________________ -- Lars M. Garshol, Institute of Informatics, Oslo University "Life is a {*word*225}ly transmitted disease." -- A. Brink |
Mr Anders L
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Break PointsLars Marius Garshol (lar...@ifi.uio.no) wrote: : In article <3uot9o$...@tst.hk.super.net>, and...@hk.super.net (Mr Anders Lee) writes: : I was a bit surprised to read two answers to this, both saying that cond. : You make an ordinary breakpoint (unconditional.) Then you enter the menu, Sorry, you over-look the not-so-simple question. My point is to set a condition that can be triggered at any program line. Say, that my program goes wrong when c<=0. But I have too many lines |
Brent Bea
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Break PointsOn Tue Aug 8, and...@hk.super.net (Mr Anders Lee) wrote: Quote
The standard way is to work down through the program, putting An alternative might be to define an array with bounds the valid var check : array[1..100] or byte; then sprinkle assignments around your code: check[c] := 0; Turn range checking on. When it traps, you can isolate the Brent |
Carl Rans
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Break PointsQuoteIn article <4086ot$...@tst.hk.super.net> and...@hk.super.net writes: slow down the program a bit depending on how complex the breakpoint is. |
Mathias Blo
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Break Pointsand...@hk.super.net (Mr Anders Lee) wrote: Quote>Lars Marius Garshol (lar...@ifi.uio.no) wrote: Quote>Sorry, you over-look the not-so-simple question. conditioned breakpoints, at least with TDH386.SYS. Regards, |
Mathias Blo
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Break PointsQuoteae...@FreeNet.Carleton.CA (Brent Beach) wrote: e.g. var c: 1..100; begin c := {some calculation}; end. You'll get a Range Check error then, if the calculation is outside the bounds of the subtype. But - you cannot use constants, because the compiler will know at compile time. Regards, |