Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2000-05

Great

9 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Curtis White
to Marc Weustink: Somebody just replaced all the writeln with asserts, great. Now I can run through the…

Did you remember to do the following?

make lazarus OPT=-dTrace

I just did this and it worked. I get the assert messages.

Curtis

Marc Weustink wrote 22 lines
At 20:26 09-05-2000 -0400, Michael A. Hess wrote: >Marc Weustink wrote: > > > > Besides that, it seems that I can't trace gtkobject.inc (or do you set > > the asserrts on on a file base and not unit ?) > >If you turn Assertions On it should be on for the whole unit even those >files that are included. Make sure that the .pp file that uses gtkobject >actually as the code at the beginning to honor the TRACE compiler >definition. You can trace any small portion of code by just surrounding >it in ASSERTIONS ON | ASSERTIONS OFF. Thats included by gtkint.pp and this unit starts with: {$ifdef Trace} {$ASSERTIONS ON} {$endif} So I cant see why it didn't work for me Marc

Reply by email

Shane Miller

I entered one "bug" /"TODO" into the system that I think would be a great starting point for Lurkers. I'm wondering if there should be a "TODO" type code added to the "Confirmed", "Fixed" etc.

Also, will some of you go through some of the TODO's and add a few to the list once we determine if a "TODO" type should be added.

Thanks
Shane

>> 05/10/00 07:42AM >>>

Hmm, I think this is a good idea.
Small tasks that individuals can contribute to.
I myself will go this route because I am fairly busy lately (university + full time job) :-(

Michal Bukovjan

Shane Miller wrote 52 lines
I always figured that the TODO: thing would be used by GREPing the file, not seeing the writeln's so I would leave them commented or in asserts. Should we add EACH procedure that needs to be done (has a TODO:) to the bug tracking software so we have a list? That way we can also see that some are being taken care of.... Shane >>> 05/09/00 11:57PM >>> I am the guilty one for doing this. I went through all the units and changed the writeln's to Asserts. I didn't realize that there were the WARNINGS and ERRORS that were supposed to be writeln. Apparently I didn't see your previous email about this. But I think I have this fixed now. I went back and changed all the ERRORS and WARNINGS back to writelns. So that should be fixed now. I didn't change the TODO's back. I wanted to find out what everyone thought about this first because having all those messages pouring all over the console window makes it very hard to debug code. I think it is just as easy to turn on tracing if you want to see the TODO messages. Also, someone can grep the directory for TODO to find them. So there are a couple of very easy ways to find them where they won't be in the way of debugging. But if everyone else thinks they should also be put back to writeln's, I will do that. Curtis Marc Weustink wrote: > Somebody just replaced all the writeln with asserts, great. > Now I can run through the code to find my debug messages I accidently left > behind to remove them. > Furthermore WARNINGS and ERRORS are also converted. They were ment to show > up all the time, not only for tracing. If you see an Warinig or Error, > something unexpected did occour and somebody should look after that. > Finally TODO's were ment to get ppls attention that there still existes > something to be implemented. Putting that behind a trace makes no sense and > therefore they can be removed. > As I said in an earlier message only some of the WriteLn I've put in the > code are worth being converted to a trace, all the others can be removed. > > Besides that, it seems that I can't trace gtkobject.inc (or do you set the > asserrts on on a file base and not unit ?) > > Marc > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

I always figured that the TODO: thing would be used by GREPing the file, not seeing the writeln's so I would leave them commented or in asserts.

Should we add EACH procedure that needs to be done (has a TODO:) to the bug tracking software so we have a list? That way we can also see that some are being taken care of....

Shane

>> 05/09/00 11:57PM >>>

I am the guilty one for doing this. I went through all the units and changed the writeln's to Asserts. I didn't realize that there were the WARNINGS and ERRORS that were supposed to be writeln. Apparently I didn't see your previous email about this. But I think I have this fixed now. I went back and changed all the ERRORS and WARNINGS back to writelns. So that should be fixed now.

I didn't change the TODO's back. I wanted to find out what everyone thought about this first because having all those messages pouring all over the console window makes it very hard to debug code. I think it is just as easy to turn on tracing if you want to see the TODO messages. Also, someone can grep the directory for TODO to find them. So there are a couple of very easy ways to find them where they won't be in the way of debugging. But if everyone else thinks they should also be put back to writeln's, I will do that.

Curtis

Marc Weustink wrote 17 lines
Somebody just replaced all the writeln with asserts, great. Now I can run through the code to find my debug messages I accidently left behind to remove them. Furthermore WARNINGS and ERRORS are also converted. They were ment to show up all the time, not only for tracing. If you see an Warinig or Error, something unexpected did occour and somebody should look after that. Finally TODO's were ment to get ppls attention that there still existes something to be implemented. Putting that behind a trace makes no sense and therefore they can be removed. As I said in an earlier message only some of the WriteLn I've put in the code are worth being converted to a trace, all the others can be removed. Besides that, it seems that I can't trace gtkobject.inc (or do you set the asserrts on on a file base and not unit ?) Marc

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Michal Bukovjan
to Shane Miller

Hmm, I think this is a good idea.
Small tasks that individuals can contribute to.
I myself will go this route because I am fairly busy lately (university + full time job) :-(

Michal Bukovjan

Shane Miller wrote 52 lines
I always figured that the TODO: thing would be used by GREPing the file, not seeing the writeln's so I would leave them commented or in asserts. Should we add EACH procedure that needs to be done (has a TODO:) to the bug tracking software so we have a list? That way we can also see that some are being taken care of.... Shane >>> 05/09/00 11:57PM >>> I am the guilty one for doing this. I went through all the units and changed the writeln's to Asserts. I didn't realize that there were the WARNINGS and ERRORS that were supposed to be writeln. Apparently I didn't see your previous email about this. But I think I have this fixed now. I went back and changed all the ERRORS and WARNINGS back to writelns. So that should be fixed now. I didn't change the TODO's back. I wanted to find out what everyone thought about this first because having all those messages pouring all over the console window makes it very hard to debug code. I think it is just as easy to turn on tracing if you want to see the TODO messages. Also, someone can grep the directory for TODO to find them. So there are a couple of very easy ways to find them where they won't be in the way of debugging. But if everyone else thinks they should also be put back to writeln's, I will do that. Curtis Marc Weustink wrote: > Somebody just replaced all the writeln with asserts, great. > Now I can run through the code to find my debug messages I accidently left > behind to remove them. > Furthermore WARNINGS and ERRORS are also converted. They were ment to show > up all the time, not only for tracing. If you see an Warinig or Error, > something unexpected did occour and somebody should look after that. > Finally TODO's were ment to get ppls attention that there still existes > something to be implemented. Putting that behind a trace makes no sense and > therefore they can be removed. > As I said in an earlier message only some of the WriteLn I've put in the > code are worth being converted to a trace, all the others can be removed. > > Besides that, it seems that I can't trace gtkobject.inc (or do you set the > asserrts on on a file base and not unit ?) > > Marc > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Marc Weustink
to Marc Weustink: Somebody just replaced all the writeln with asserts, great. Now I can run through the…
Michael A. Hess wrote 10 lines
Marc Weustink wrote: > > Besides that, it seems that I can't trace gtkobject.inc (or do you set > the asserrts on on a file base and not unit ?) If you turn Assertions On it should be on for the whole unit even those files that are included. Make sure that the .pp file that uses gtkobject actually as the code at the beginning to honor the TRACE compiler definition. You can trace any small portion of code by just surrounding it in ASSERTIONS ON | ASSERTIONS OFF.

Thats included by gtkint.pp and this unit starts with:

{$ifdef Trace}
{$ASSERTIONS ON}
{$endif}

So I cant see why it didn't work for me

Marc

Reply by email

Curtis White
to Marc Weustink: Somebody just replaced all the writeln with asserts, great. Now I can run through the…

I am the guilty one for doing this. I went through all the units and changed the writeln's to Asserts. I didn't realize that there were the WARNINGS and ERRORS that were supposed to be writeln. Apparently I didn't see your previous email about this. But I think I have this fixed now. I went back and changed all the ERRORS and WARNINGS back to writelns. So that should be fixed now.

I didn't change the TODO's back. I wanted to find out what everyone thought about this first because having all those messages pouring all over the console window makes it very hard to debug code. I think it is just as easy to turn on tracing if you want to see the TODO messages. Also, someone can grep the directory for TODO to find them. So there are a couple of very easy ways to find them where they won't be in the way of debugging. But if everyone else thinks they should also be put back to writeln's, I will do that.

Curtis

Marc Weustink wrote 17 lines
Somebody just replaced all the writeln with asserts, great. Now I can run through the code to find my debug messages I accidently left behind to remove them. Furthermore WARNINGS and ERRORS are also converted. They were ment to show up all the time, not only for tracing. If you see an Warinig or Error, something unexpected did occour and somebody should look after that. Finally TODO's were ment to get ppls attention that there still existes something to be implemented. Putting that behind a trace makes no sense and therefore they can be removed. As I said in an earlier message only some of the WriteLn I've put in the code are worth being converted to a trace, all the others can be removed. Besides that, it seems that I can't trace gtkobject.inc (or do you set the asserrts on on a file base and not unit ?) Marc

Reply by email

Michael A. Hess
to Marc Weustink: Somebody just replaced all the writeln with asserts, great. Now I can run through the…
Marc Weustink wrote
Besides that, it seems that I can't trace gtkobject.inc (or do you set the asserrts on on a file base and not unit ?)

If you turn Assertions On it should be on for the whole unit even those files that are included. Make sure that the .pp file that uses gtkobject actually as the code at the beginning to honor the TRACE compiler definition. You can trace any small portion of code by just surrounding it in ASSERTIONS ON | ASSERTIONS OFF.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Marc Weustink

Somebody just replaced all the writeln with asserts, great. Now I can run through the code to find my debug messages I accidently left behind to remove them.
Furthermore WARNINGS and ERRORS are also converted. They were ment to show up all the time, not only for tracing. If you see an Warinig or Error, something unexpected did occour and somebody should look after that. Finally TODO's were ment to get ppls attention that there still existes something to be implemented. Putting that behind a trace makes no sense and therefore they can be removed.
As I said in an earlier message only some of the WriteLn I've put in the code are worth being converted to a trace, all the others can be removed.

Besides that, it seems that I can't trace gtkobject.inc (or do you set the asserrts on on a file base and not unit ?)

Marc

Reply by email