• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • KDebug
  • Block
Public Member Functions | List of all members
KDebug::Block Class Reference
Debug message generators

#include <kdebug.h>

Public Member Functions

 Block (const char *label, int area=KDE_DEFAULT_DEBUG_AREA)
 
 ~Block ()
 

Detailed Description

Use this to label sections of your code.

Since
4.6

Usage: void function() { KDebug::Block myBlock( "section" );

debug() << "output1" << endl; debug() << "output2" << endl; }

Will output:

app: BEGIN: section
app:  [prefix] output1
app:  [prefix] output2
app: END: section - Took 0.1s

Alternatively, use the KDEBUG_BLOCK macro, for automatic naming.

Definition at line 354 of file kdebug.h.

Constructor & Destructor Documentation

KDebug::Block::Block ( const char *  label,
int  area = KDE_DEFAULT_DEBUG_AREA 
)

Definition at line 881 of file kdebug.cpp.

KDebug::Block::~Block ( )

Definition at line 901 of file kdebug.cpp.


The documentation for this class was generated from the following files:
  • kdebug.h
  • kdebug.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal