Coder Social home page Coder Social logo

bazdebugwindow's Introduction

BazDebugWindow

BazDebugWindow is a reworking of the original DebugWindow by GExperts, renamed as per their licensing requirements.

A very useful tool for Delphi developers - say "goodbye" to all those ShowMessage(...) calls while trying to debug your program.

BazDebugWindow

The BazDebugWindow will pop-up in the bottom righthand corner of your Windows desktop when you send it a debug message.

This is very easily done: just add the _debugWindow.pas unit to your project and include it in the "uses" clause of any unit. N.B. You don't need to copy the unit to every project. Just add it from its current location.

At its most basic, just call "debug('some string')" from anywhere in your code for it to appear in the BazDebugWindow.

There are numerous other calls which can be made which I will detail below.

Initial Installation

  1. Download the latest BazDebugWindow_release_v1_n_n.zip file from "Releases" and unzip it to a folder of your choice.
  2. Note that the folder now also contains the _debugWindow.pas unit for inclusion in your project.
  3. Run the BazDebugWindow.exe - it will appear minimized in the system tray on your desktop.

When the app runs, it will try to write it's installation location to the registry at [HKEY_CURRENT_USER\SOFTWARE\Baz\Debug]

If this fails, it will create a "registerExe.reg" file so that you can do this yourself. Once this registry entry has been created, any call to "debug(...)" or any of the other debug methods at any time will launch BazDebugWindow.exe if it's not already running. You don't need to remember to launch it yourself before running the program you're debugging.

N.B. If necessary, you can move BazDebugWindow.exe to a different folder, or rename the folder it's currently in. If you do this, you must run the exe immediately to register its new location.

BazDebugWindow methods

procedure debug(const msg: string);

procedure debugBoolean(const identifier: string; const value: boolean);

procedure debugCardinal(const identifier: string; const value: cardinal);

procedure debugClear; // this won't cause the window to pop-up - suggested location: in your .dpr file

procedure debugDateTime(const identifier: string; const value: TDateTime);

procedure debugError(const msg: string);

procedure debugEx(const msg: string; MType: TMsgDlgType);

procedure debugFormat(const msg: string; const args: array of const);

procedure debugFormatEx(const msg: string; const args: array of const; MType: TmsgDlgType);

procedure debugIndent;

procedure debugint64(const identifier: string; const value: int64);

procedure debuginteger(const identifier: string; const value: integer);

procedure debugMethodEnter(const methodName: string);

procedure debugMethodExit(const methodName: string);

procedure debugOutdent;

procedure debugPause;

procedure debugResume;

procedure debugSeparator;

procedure debugString(const identifier: string; const value: string);

procedure debugStringList(const identifier: string; const value: TStringList);

procedure debugWarning(const msg: string);

More details to follow

I will expand on each of these later - I just wanted to get a basic "readme" file into the first release.zip file.

Any questions or issues, go to Discussions (https://github.com/BazzaCuda/BazDebugWindow/discussions)

regards, Baz.

bazdebugwindow's People

Contributors

bazzacuda avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.