Author Topic: DebugView  (Read 2414 times)

0 Members and 1 Guest are viewing this topic.

Offline rdc

  • Pentium
  • *****
  • Posts: 1495
  • Karma: 140
  • Yes, it is me.
    • View Profile
    • Clark Productions
DebugView
« on: February 09, 2007 »
DebugView is a handy little program to monitor debug information from your program. It works quite well with FreeBasic. It is useful in cases where you don't want to stop the program from executing yet see variable values.

Here is an example of usage in FB:

Code: [Select]
option explicit

#include once "windows.bi"

'Define debug string
dim DebugOut as String
dim i as integer

For i = 1 to 10
    DebugOut = "i: " & str(i)
    OutputDebugString DebugOut
    Sleep 10
Next

print "Done."
sleep
end




Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: DebugView
« Reply #1 on: February 10, 2007 »
Useful. Very useful.

K+
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: DebugView
« Reply #2 on: February 10, 2007 »
FWIW, this also works in C or C++ with devc, and if you're using VisualStudio Express, the output is caught by the debugger and shown in one of the IDE windows.

Very, very handy indeed.

Jim
Challenge Trophies Won: