Recent

Author Topic: outputdebugstring  (Read 16646 times)

neodivx

  • New Member
  • *
  • Posts: 13
outputdebugstring
« on: January 11, 2007, 09:38:04 pm »
hi everybody

well, when i send a outputdebugstring in delphi, i can choose if i send it in the debug window of delphi, or send the message to another software ( like debugview )

is this possible in lazarus ?

thanks  :D

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: outputdebugstring
« Reply #1 on: January 11, 2007, 10:29:40 pm »
Quote from: "neodivx"

well, when i send a outputdebugstring in delphi, i can choose if i send it in the debug window of delphi, or send the message to another software ( like debugview )

is this possible in lazarus ?


Note that OutputDebugString is a Windows API call.

Is there something universal we can use? WriteLn can't be used in GUI apps with Windows.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: outputdebugstring
« Reply #2 on: January 12, 2007, 11:21:18 am »
I know two options:
1. Use debugln, see FAQ for more details.

2. Use MultiLog.

neodivx

  • New Member
  • *
  • Posts: 13
outputdebugstring
« Reply #3 on: January 12, 2007, 12:12:43 pm »
thanks for the hint

but, still, the debug strings are send in the debug windows of lazarus, when you're working on lazarus, and outside lazarus when you run the exe only ( that's normal by the way )

but how can i send the debug strings outside lazarus when i'm working on it ( for delphi 2006, you do: tools, option, debugger options, and you uncheck: integrated debugging ): so, all your debug messages are not more handle by delphi: is that possible in lazarus ?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
outputdebugstring
« Reply #4 on: January 12, 2007, 12:17:15 pm »
I am not sure if this is what you want:

In the debugger options, set the debugger to none. Now, the application is simply started by the IDE, so you cannot set break points etc.

If you disable GUI application, you can see the text written to stdout.

neodivx

  • New Member
  • *
  • Posts: 13
outputdebugstring
« Reply #5 on: January 13, 2007, 01:19:02 pm »
thanks all for your posts.

it's help to do what i want.

to explain all the stuff, in visual studio, you can keep the debugging stuff ( like break points ) and send the outputdebugstring outside the ide ( to debugview for example): i'd try to find the same way, but different soft, different way to think

i know this is not the place for, but, by the way, i'm working on a commercial stuff, and i love lazarus ( even if i have delphi professionel for that ): it's easy, well thought ( the autocompletext on combobox is just wonderfull ), you don't have to learn pascal again
lazarus sometimes crashes: like delphi anyway: but delphi, when you want to reload it, it takes minutes, lazarus is so lite to call back

thanks all people who're working on this stuff: this is really a great tools ( make me back to pascal, after years of c# working )

 

TinyPortal © 2005-2018